Aspose inserthtml with embedded base64 image

Hi @asad.ali
I am facing the issue to convert large html to single image
testExample.zip (3.9 MB)

please see the attached code and html file

using

com.aspose aspose-pdf 19.8
  <dependency>
      <groupId>com.aspose</groupId>
      <artifactId>aspose-words</artifactId>
      <version>19.12</version>
      <classifier>jdk17</classifier>
  </dependency>

@jVivek

Can you please explain a bit more about what type of issue are you facing? Are you facing some exception or output image is not as per your expectations? Please try to use the latest version of the API and provide us the requested information if you still notice any issues with it.

Hello Asad,
I am facing another issue like i have HTML template and in that template i am inserting base64 encoded image into IMG src after converting html to Image is not creating properly
created image has not appearing base64 encoded image

however my focus is to genrate image from HTML content including Base64 encoded img tag

Even i have tried IResourceLoadingCallback to load image file from local folder also tried to put image into SHAP.getImageData().setImage(); but thats not working any idea

see the attached zip file
AsposeHtmlToImage.zip (255.2 KB)

@jVivek

Looks like you are using Aspose.Words to generate PDF from HTML and then using Aspose.PDF to convert obtained PDF into an image.

Can you please try with 24.12 version of each API? If issue still persists, please share following:

  • PDF document generated by Aspose.Words (instead of saving to stream, please try to save it to file path)
  • Image generated by Aspose.PDF 24.12