Dear there,
I have a lot of questions; those question i got them after testing the conversion from various office documents to HTML
- First : images are not shown in HTML pages because the folder name of src image in html doesnt match the physical folder as there is an extension mentioned on the folder name in the src of that image
- Second : the contents of any word document after conversion the file to HTML then pdf are miss-aligned, is there any way to handle this issue ?
- Third : The header mentioned correctly but the footer isn’t, when converting the file to HTML then PDF, also am asking is there any way to handle that kind of problem when two conversion happened HTML then to PDF ?
Best Regards!
Hello,
Thank you for your inquiry.
Basically, while to html conversion, our GroupDocs.Conversion library also creates the folder with resources (.css , images and fonts) for this output .html file. The path to these resources is relativ and doesn't contain a full physical path. So the resources will be rendered only if the "resource folder" will be located in the same place with .html file .
About your issues after conversion .html file to .pdf format. We have managed to reproduce the same issue and its reason is that, that the html resource doesn't applyed, after conversion for output .pdf file . We have notified our Product team about the issue and the issue should be resolved in the new generation of the GroupDocs.Conversion library for java that will be released soon.
Also we have logged this problem in our issue tracking system as CONVERSIONJAVA-143 and linked this forum thread to the same issue . You will be notified via this forum thread once this issue is resolved.
We apologize for the inconvenience.
----------
Best regards,
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+
Hello,
Yes, you are right our library will create the resource folder with the same name(extension) as and the file, but but it doesn't prevent image showing from the folder.
Could you please share with us your .docm file example and code of the conversion that you use. Because we can't reproduce the issue with missed image on our side. After a conversion of all pages from our test .docm document all images are rendered well , as you can see on the screenshot.
We will wait for your details.
---------
Best regards,
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+
Here is the file , I shared the code previously with you but instead of using pdfSaveOptions use htmlSaveOptions
waiting your reply.
Thanks
Best Regards!
Hello,
Thank you for your file example.
We have tested your scenario with your file and after conversion whole document to .html format we can reproduce the issue with footer and header of the document. At the moment they are present only once and footer is rendered incorrectly . So we have logged this problem in our issue tracking system as CONVERSIONJAVA-144 and have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
Note: if you convert the document page by page, then you can avoid the issue. For this you should add htmlSaveOptions.setPage(1) parameter.
We apologize for the inconvenience.
--------
Best regards,
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+