Is PDF to HTML conversion fully supported by aspose.PDF java library?

Hi,

I am trying to convert pdf file to HTML using Aspose.PDF for Java 4.3.0. Does it support Embedded fonts ?

com.aspose.pdf.Document document = new com.aspose.pdf.Document(srcFileName);
document.save(outFileName, com.aspose.pdf.SaveFormat.Html);

When i execute above code snippet for the attached PDF , it throws below error.
java.lang.UnsupportedOperationException: Embedded fonts are unsupported
Embedded fonts are unsupported
at com.aspose.d.e.d.a(Unknown Source)
at com.aspose.d.e.b.a(Unknown Source)
at com.aspose.d.q.a(Unknown Source)
at com.aspose.b.a.i.a(Unknown Source)
at com.aspose.b.a.f.a(Unknown Source)
at com.aspose.b.a.a(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)

Thanks & Regards,
Thirumurthy R



Hi Thirumurthy,

We are sorry for the inconvenience. While testing the scenario with Aspose.Pdf for Java 4.3.0, I've managed to reproduce this issue on my side and logged it in our bug tracking system as PDFNEWJAVA-33786 for further investigation and resolution. I've also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

Hi Tilal,


This PDF to HTML feature does not have option/feature to add the images & CSS folder aliases as its in the WORD to HTML, are you plaaning to give it in any release as i am have to create the HTML at run time & merge it in web page which wont render the images/CSS.

Regards

Rushikesh D

Hi Rushikesh,


I am afraid the requested feature is
currently not supported but for the sake of implementation, I have logged this
requirement in our issue tracking system under New Features list as PDFNEWJAVA-33799.
We will further investigate this requirement in details and will keep you
updated on the status of a correction. <o:p></o:p>

We apologize for your inconvenience.

Hi Thirumurthy,


Thanks for your patience. Please note your above reported issue (PDFNEWJAVA-33786) has been resolved in result of some other fix. Please download and try latest version of Aspose.Pdf for Java, it will help you to accomplish the task.

Please feel free to contact us for any further assistance.

Best Regards,

Hi Rushikesh,


Thanks for your patience. You may save images to a separate folder as following. Please download latest version of Aspose.Pdf for Java and try following code snippet. It will help you to accomplish the task.

com.aspose.pdf.Document document = new
com.aspose.pdf.Document(myDir+“input.pdf”);<o:p></o:p>

// create HtmlSaveOption with tested feature

HtmlSaveOptions newOptions = new HtmlSaveOptions();

newOptions.SpecialFolderForAllImages = myDir + "imageOutFolder";

document.save(myDir+"output.html", newOptions);

Please feel free to contact us for any further assistance.


Best Regards,