We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

I need to convert HTML to PDF as it is (as plain text)

I am using Aspose pdf for converting HTML to PDF. But I see the converted PDF in a document format, basically no HTML tags. But I want it to remain as HTML itself even in PDF. Is this possible?

As a side information, we are evaluating aspose to replace itext and hence we are trying out all mime types.

Output is named as ImagetoPDF
Expected output is named as ExpectedOutputImagetoPDF.pdf (681.5 KB)
ExpectedOutput.png (50.5 KB)

HtmlLoadOptions options= new HtmlLoadOptions();
com.aspose.pdf.Document pdfDocument= new com.aspose.pdf.Document(is,options);
pdfDocument.save(“C:/temp/ImagetoPDF.pdf”,com.aspose.pdf.SaveFormat.Pdf);Android Mobile - Font Background.7z (778 Bytes)


I am sorry but when you convert a document to PDF the result is a PDF document, which means no HTML content will remain.

This is common to every conversion possible, not only HTML to PDF. Since HTML Tag are not part of the PDF instructions.