Convert HTML to PDF in Android using Aspose.Words for Android via Java

Hello, I was wondering the best way to create a PDF from HTML using Android Aspose.Pdf?

Hi John,

You can use Aspose.Words for Android to convert HTML to PDF.

Best Regards,

Does aspose.words for android allow me to use style in my HTML when converting HTML to PDF? If so, can I use external style sheets, or does the style have to be in style tags within the HTML file?

Hi John,

Yes, you can use com.aspose.words.LoadOptions.setResourceLoadingCallback to load external resources (images and CSS etc.). You can get the idea from this Java example; same code can be used in Android.

Best Regards,

5 posts were split to a new topic: Html page style ,css,color are missing and getting text alone in pdf - Android