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

Free Support Forum - aspose.com

Format issues when converting webpage to PDF

Hi Support,

I’m facing format issues using the latest version of Aspose.Words 14.2.1 DLLs

Aspose.Words.Document doc = new Aspose.Words.Document("http://www.aspose.com/docs/display/wordsnet/SetLicense+Method");
doc.Save("Output.pdf", Aspose.Words.SaveFormat.Pdf);

i want exactly how we look in webpage

Is it possible by this method??

This message was posted using Email2Forum by Imran Rafique. (attachment)

Hi,

Thanks for your inquiry. Please note that it is not guaranteed that when you convert a Html file using Aspose.Words, the output Word/PDF document will look exactly the same as the Html file rendered in web browser. This is because Aspose.Words was originally designed to work with Microsoft Word documents and Html documents are quite different. For details, please consult the articles mentioned in the following page:

https://docs.aspose.com/words/net/load-in-the-html-html-xhtml-mhtml-format/

Best regards,