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

Free Support Forum - aspose.com

Landscape on some pages within HTML to Doc/Pdf

I am converting an HTML document into Docx/Pdf and I’m wondering if there is a way to convert the whole HTML file but have some parts of the document in landscape orientation?


Hi Ryan,

Thanks for your inquiry. Yes, you can achieve your requirement using Aspose.Words. You need to insert the required content in as Section and set the orientation of page using PageSetup.Orientation property.

If you still face problem, please share your input and expected output documents. We will then provide you more information about your query along with code.

It is going to be a part of the long HTML document that will be fed into the API. Is there a way to find that section within the HTML using CSS class?

Hi Ryan,

Thanks for your inquiry. Please share your input HTML and expected output DOC/PDF documents. We will then provide you more information about your query along with code.