How can i merge image coming from javascript

As i am capturing the imagefrom webpage using JavaScript and want to merge into the doc file using ASPOSE API… how i can do it?

Hi Mahesh,

Thanks for your inquiry. I am afraid, there is no way to add Javascript or additional attributes to HTML using Aspose.Words. Aspose.Words does not deal with Javascript and no Javascript is read or written during open and save.
https://docs.aspose.com/words/java/document-features-supported-on-html-import/

Thanks Thair,
Is there any possible way we can do the merge for capture image into doc

Thair as i had converted the image into bytes array and want to append to the doc … could you please provide me the sample code for the appending the image array list

Hi Mahesh,

Thanks for your inquiry. Please use DocumentBuilder.insertImage method (Byte[]) to inserts an image from a byte array into the document. Please check the overloaded methods of DocumentBuilder.insertImage from here:
https://reference.aspose.com/words/java/com.aspose.words/documentbuilder/

Please let us know if you have any more queries.