Convert htm to pdf format using aspose android via java.
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.
HTM format file are not able to convert to PDF.
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);
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.