Class Page_Api
- java.lang.Object
- 
- com.ironsoftware.ironpdf.internal.staticapi.Page_Api
 
- 
 public final class Page_Api extends Object The type Page api.
- 
- 
Constructor SummaryConstructors Constructor Description Page_Api()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappendPdf(InternalPdfDocument mainPdfDocument, InternalPdfDocument anotherPdf)Appends another PDF to the end of the currentInternalPdfDocumentIf AnotherPdfFile contains form fields, those fields will be appended with '_' in the resulting PDF.static InternalPdfDocumentcopyPage(InternalPdfDocument internalPdfDocument, List<Integer> pageIndexes)Creates a new PDF by copying a range of pages from this PdfDocument.static List<PageInfo>getPagesInfo(InternalPdfDocument internalPdfDocument)Gets the list of pages with information in the PDF document.static voidinsertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf)Inserts another PDF into the current PdfDocument, starting at a given Page Index.static voidinsertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf, int atIndex)Inserts another PDF into the current PdfDocument, starting at a given Page Index.static InternalPdfDocumentmergePage(List<InternalPdfDocument> pdfDocuments)Static method that joins (concatenates) multiple PDF documents together into one compiled PDF document.static voidremovePage(InternalPdfDocument internalPdfDocument, List<Integer> pageIndexes)Removes a range of pages from the PDFstatic voidresizePage(InternalPdfDocument internalPdfDocument, double pageWidth, double pageHeight, Integer pageIndex)Resize a page to the specified dimensions (in millimeters)static voidsetPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation)Rotates all page of the PdfDocument by a specified number of degrees.static voidsetPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation, List<Integer> pageIndexes)Rotates pages of the PdfDocument by a specified number of degrees.
 
- 
- 
- 
Method Detail- 
removePagepublic static void removePage(InternalPdfDocument internalPdfDocument, List<Integer> pageIndexes) Removes a range of pages from the PDF- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndexes- A list of pages indexes to remove.
 
 - 
mergePagepublic static InternalPdfDocument mergePage(List<InternalPdfDocument> pdfDocuments) Static method that joins (concatenates) multiple PDF documents together into one compiled PDF document. If the PDF contains form fields the form field in the resulting PDF's name will be appended with '_{index}' e.g. 'Name' will be 'Name_0'- Parameters:
- pdfDocuments- A List of PdfDocument. To merge existing PDF files you may use the PdfDocument.FromFile static method in conjunction with Merge.
- Returns:
- A new, merged InternalPdfDocument
 
 - 
insertPagepublic static void insertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf) Inserts another PDF into the current PdfDocument, starting at a given Page Index. If AnotherPdfFile contains form fields, those fields will be appended with '_' in the resulting PDF. e.g. 'Name' will be 'Name_'- Parameters:
- internalPdfDocument- the internal pdf document
- anotherPdf- internal pdf document to append.
 
 - 
insertPagepublic static void insertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf, int atIndex) Inserts another PDF into the current PdfDocument, starting at a given Page Index. If AnotherPdfFile contains form fields, those fields will be appended with '_' in the resulting PDF. e.g. 'Name' will be 'Name_'- Parameters:
- internalPdfDocument- the internal pdf document
- anotherPdf- internal pdf document to append.
- atIndex- Index at which to insert the new content. Note: Page 1 has index 0...
 
 - 
appendPdfpublic static void appendPdf(InternalPdfDocument mainPdfDocument, InternalPdfDocument anotherPdf) Appends another PDF to the end of the currentInternalPdfDocumentIf AnotherPdfFile contains form fields, those fields will be appended with '_' in the resulting PDF. e.g. 'Name' will be 'Name_'- Parameters:
- mainPdfDocument- the main internal pdf document
- anotherPdf- internal pdf document to append.
 
 - 
getPagesInfopublic static List<PageInfo> getPagesInfo(InternalPdfDocument internalPdfDocument) Gets the list of pages with information in the PDF document.- Parameters:
- internalPdfDocument- the internal pdf document
- Returns:
- the pages info
 
 - 
setPageRotationpublic static void setPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation) Rotates all page of the PdfDocument by a specified number of degrees.- Parameters:
- internalPdfDocument- the internal pdf document
- pageRotation- Degrees of rotation
 
 - 
setPageRotationpublic static void setPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation, List<Integer> pageIndexes) Rotates pages of the PdfDocument by a specified number of degrees.- Parameters:
- internalPdfDocument- the internal pdf document
- pageRotation- Degrees of rotation
- pageIndexes- Indexes of the pages to rotate in an IEnumerable, list or array. PageIndex is a 'Zero based' page number, the first page being 0
 
 - 
copyPagepublic static InternalPdfDocument copyPage(InternalPdfDocument internalPdfDocument, List<Integer> pageIndexes) Creates a new PDF by copying a range of pages from this PdfDocument.- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndexes- An Iterable of page indexes to copy into the new PDF.
- Returns:
- A new InternalPdfDocument
 
 - 
resizePagepublic static void resizePage(InternalPdfDocument internalPdfDocument, double pageWidth, double pageHeight, Integer pageIndex) Resize a page to the specified dimensions (in millimeters)- Parameters:
- internalPdfDocument- the internal pdf document
- pageWidth- Desired page width, in millimeters
- pageHeight- Desired page height, in millimeters
- pageIndex- Selected page indexes.
 
 
- 
 
-