How to convert htm to pdf using aspose android via java?

Convert htm to pdf format using aspose android via java.

@brightraj

Thank you for contacting support.

You may convert an HTML file to a PDF document with Aspose.PDF API as explained in Convert HTML file to PDF format.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.

Hi ,

HTM format file are not able to convert to PDF.

@brightraj

HTM as well as HTML file format is supported. Would you please share ZIP files and narrowed down code snippet while mentioning the problem you are facing so that we may assist you accordingly.

Have used Aspose PDF for android via java for the HMT/HTML to PDF conversion.

The below code used ,
htmsample.zip (1.6 KB)

HtmlLoadOptions htmloptions = new HtmlLoadOptions(srcFile);
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(srcFile,htmloptions);
com.aspose.pdf.PdfSaveOptions pdfSaveOptions = new com.aspose.pdf.PdfSaveOptions();
doc.save(destFile +"/"+ destFileName, pdfSaveOptions);

@brightraj

Thank you for sharing requested data.

We have been able to reproduce Fatal Exception while converting shared data. A ticket with ID PDFANDROID-555 has been logged in our issue management system for further investigations. However, we will appreciate if you can share stack trace and screenshot of the error along with your environment details for our reference.

Hi , Is there any update ?

@brightraj

We are afraid any update may not be available as it has recently been logged. It may take some months before it is scheduled. We will update you as soon as any information will be available.

However, we also offer Paid Support, where issues are used to be investigated with higher priority. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.