Tamaño PDF Personalizado With IronPDF, developers can generate PDF documents with dimensions sized other than the standard A4 (8½ by 11 inches, or 21.59 by 27.94 centimeters). Render PDFs with different paper sizes by specifying the desired dimensions in a ChromePdfRenderOptions object with the setPaperSize method. Set the paper size in the method argument with a preset PaperSize value. Afterward, render the PDF document as usual from the source content (HTML string, URL, HTML file, etc.). The PaperSize enum type supports over 100 industry-recognized print sizes. This provides coverage for those sizes used in the majority of business cases. To use a different print size other than the ones included in the PaperSize enum, choose PaperSize.Custom and set the desired page width and page height manually: As shown above, setCustomPaperWidth and setCustomPaperHeight accept number values representing the desired dimensions in inches. To set the dimensions using centimeters, use setCustomPaperSizeInCentimeters. To set the dimensions in millimeters, use setCustomPaperSizeInMillimeters. For pixels/points, use setCustomPaperSizeInPixelsOrPoints. Learn more about setting custom PDF sizes with IronPDF. Enlaces de Documentos Ver en Github 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? Versión: 2025.11 recién lanzado Descarga Gratis de Maven 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