Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
In the Go SDK for Apryse, the Image.createFromURL function you are familiar with in Node.js is not directly available. However, you can accomplish this by fetching the image data from the URL and then using the Image.Create method with a byte stream.
Some things you can try:
Use an HTTP client in Go to fetch the image data from the URL.
Convert the fetched data into a byte stream.
Use the Image.Create method from the PDFNet library to create the image from the byte stream.
Here are some resources that might help you:
Image Documentation: Provides details on the Image class and its methods in the Go SDK.
Go HTTP Client: Learn how to use the HTTP client in Go to fetch data from URLs.
Image.Create Method: Documentation on how to create an image using a byte stream.
Hopefully, this helps you solve your problem while you wait for a human to get back to you.