Orientación Vertical & Horizontal When creating or rendering your PDF in IronPDF, you can choose from one of two orientations of how you want your document to be. The PdfPaperOrientation class determines the paper orientation when rendering HTML to PDF with IronPDF. This example shows you how to set a paper orientation for your documents. IronPDF has two different values in PDFs called PaperOrientation and PageRotation. Both are used differently. Not only that, you need to know when to use which. PdfPaperOrientation - This is for NEW PDF Documents rendered from HTML or URL: This is only valid as a setting when rendering a document from HTML or from a URL. For Landscape use: For Portrait use: However, the information is then LOST after the document is rendered. PageRotation - This is used for already existing PDF Documents: This is only valid as a property of an existing document. (Meaning this cannot be specified during rendering of a new document). This information is stored as part of the document itself on a per-page basis. Pages of newly rendered documents will always have a default PageRotation of None. The value of PageRotation does NOT have any effect on the width and height of the page. Specifying a PageRotation of None on a 210mm x 297mm page will result in a page with width=210 height=297. Specifying a PageRotation of Clockwise90 on a 210mm x 297mm page will result in a page with width=210 height=297. Learn More About Page Orientation & Rotation in PDFs Ver en GitHub Código https://github.com/iron-software/IronPdf.Examples/tree/main/examples/pdf-page-orientation Descargar ZIP Tutorial Relacionado Guía de Cómo Hacer Relacionada Documentación de Clase Obtener Paquetes de Idiomas Descargar IronPDF DLL Reportar un problema en esta página ¿Listo para empezar? Nuget Descargas 16,154,058 | Versión: 2025.11 recién lanzado Descarga Gratis de NuGet Descargas totales: 16,154,058 Ver Licencias
Producto completamente funcional Obtén 30 días de producto completamente funcional.Instálalo y ejecútalo en minutos.
Soporte técnico 24/5 Acceso completo a nuestro equipo de soporte técnico durante tu prueba del producto
Producto completamente funcional Obtén 30 días de producto completamente funcional.Instálalo y ejecútalo en minutos.
Soporte técnico 24/5 Acceso completo a nuestro equipo de soporte técnico durante tu prueba del producto