Hi,
Using Aspose, I read a word document from the server location as a File InputStream and passed this stream to the Document constructor to save this document as a HTML file. Conversion part is doing good. But in the word document, there is a image logo. This logo is missing in the HTML file. Instead there is a square dark color appears in the logo location in the HTML.
Any help is appreciated.
Regards,
Prakash.
Hi
Thanks for your request. Could you please attach your documents for testing? Also please note that all images embedded in the document should be stored as separate files during converting to HTML. See the following link for more information.
https://reference.aspose.com/words/net/aspose.words.saving/htmlsaveoptions/imagesfolder/
Best regards.
Thanks for your quick reply. But the word document which I am trying to convert is having image in its Headers. Even though I added the below line to my existing code, it really did not solve the problem.
document.getSaveOptions().setExportImagesFolder(getDocumentSavePath());
Sorry, unfortunately I can not attach the document due to my client policy. It is just a word document with some data in table formats. The header of the word document contains the company name and its logo. The footer contains the client disclosure policy statement. The whole document is read-only. Non-editable, saved some where in the server. I just need to convert it into HTML.
Hi
Thank you for additional information. You can remove all confidential content from the document or create sample document from scratch.
If you cannot remove content because the document is protected, you can unprotect it using Aspose.Words.
https://docs.aspose.com/words/net/protect-or-encrypt-a-document/
Best regards.