The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
i have this code in an html file to add a new page in a HTML to PDF conversion :
<p style="page-break-before: always;"></p>
is there a way to change the orientation of the new page from vertical to horizontal? i only need this last page on horizontal format, leaving the rest on vertical
GKGowthamraj Kumar Syncfusion Team August 14, 2019 06:40 AM
Hi Javier,
Thank you for using Syncfusion products.
We have analyzed the reported requirement, we do not have direct support for changing the orientation of particular pdf page when converting HTML to PDF. But we can achieve your requirement by getting the template of the converted PDF page and draw it to the new pdf document. For this, we have created a sample and convert the simple html file into pdf document with changing the orientation of last page in the document.
We have attached the sample and their output documents for your reference. Kindly try the sample and let us know if it is suites your requirement.