Dividir PDFs This code example shows how Java developers can leverage IronPDF's PDF editing functionality to achieve a very common use case: splitting a PDF into smaller PDFs. Using the copyPages method, developers can quickly produce a new PDF document containing an inclusive set of pages from the source document. The featured example uses this approach to produce two new PDF documents containing the first page and the second and third pages, respectively, of a newly-rendered PDF document. This preserves the content and structure of the source document in its original form, while copying portions of its contents to separate files--effectively "splitting" the file for all intents and purposes. This approach is useful in situations where the developer must retain the source file in its original form for backup purposes. A slightly different approach to splitting a PDF document (one that doesn't keep the original file) can be accomplished with the copyPages method in conjunction with the removePages method. How to Split PDF Files in Java Install IronPDF Java library to split PDF documents Import existing PDF or render a new PDF in Java Split PDF by using copyPages method to copy the PDF pages to another PdfDocument object Export the PdfDocument with saveAs method Perform step 3 in just 1 line of Java code Learn more about the copyPage method in Java. 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