public final class Page_Api extends Object
Constructor and Description |
---|
Page_Api() |
Modifier and Type | Method and Description |
---|---|
static void |
appendPdf(InternalPdfDocument mainPdfDocument,
InternalPdfDocument anotherPdf)
Appends another PDF to the end of the current
InternalPdfDocument If AnotherPdfFile
contains form fields, those fields will be appended with '_' in the resulting PDF. |
static InternalPdfDocument |
copyPage(InternalPdfDocument internalPdfDocument,
Iterable<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 void |
insertPage(InternalPdfDocument internalPdfDocument,
InternalPdfDocument anotherPdf)
Inserts another PDF into the current PdfDocument, starting at a given Page Index.
|
static void |
insertPage(InternalPdfDocument internalPdfDocument,
InternalPdfDocument anotherPdf,
int atIndex)
Inserts another PDF into the current PdfDocument, starting at a given Page Index.
|
static InternalPdfDocument |
mergePage(List<InternalPdfDocument> pdfDocuments)
Static method that joins (concatenates) multiple PDF documents together into one compiled PDF
document.
|
static void |
removePage(InternalPdfDocument internalPdfDocument,
Iterable<Integer> pageIndexes)
Removes a range of pages from the PDF
|
static void |
resizePage(InternalPdfDocument internalPdfDocument,
double pageWidth,
double pageHeight,
Integer pageIndex)
Resize a page to the specified dimensions (in millimeters)
|
static void |
setPageRotation(InternalPdfDocument internalPdfDocument,
PageRotation pageRotation)
Rotates all page of the PdfDocument by a specified number of degrees.
|
static void |
setPageRotation(InternalPdfDocument internalPdfDocument,
PageRotation pageRotation,
Iterable<Integer> pageIndexes)
Rotates pages of the PdfDocument by a specified number of degrees.
|
public static void removePage(InternalPdfDocument internalPdfDocument, Iterable<Integer> pageIndexes)
internalPdfDocument
- the internal pdf documentpageIndexes
- A list of pages indexes to remove.public static InternalPdfDocument mergePage(List<InternalPdfDocument> pdfDocuments)
pdfDocuments
- A List of PdfDocument. To merge existing PDF files you may use the PdfDocument.FromFile static method in conjunction with Merge.InternalPdfDocument
public static void insertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf)
internalPdfDocument
- the internal pdf documentanotherPdf
- internal pdf document to append.public static void insertPage(InternalPdfDocument internalPdfDocument, InternalPdfDocument anotherPdf, int atIndex)
internalPdfDocument
- the internal pdf documentanotherPdf
- internal pdf document to append.atIndex
- Index at which to insert the new content. Note: Page 1 has index 0...public static void appendPdf(InternalPdfDocument mainPdfDocument, InternalPdfDocument anotherPdf)
InternalPdfDocument
If AnotherPdfFile
contains form fields, those fields will be appended with '_' in the resulting PDF. e.g. 'Name'
will be 'Name_'mainPdfDocument
- the main internal pdf documentanotherPdf
- internal pdf document to append.public static List<PageInfo> getPagesInfo(InternalPdfDocument internalPdfDocument)
internalPdfDocument
- the internal pdf documentpublic static void setPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation)
internalPdfDocument
- the internal pdf documentpageRotation
- Degrees of rotationpublic static void setPageRotation(InternalPdfDocument internalPdfDocument, PageRotation pageRotation, Iterable<Integer> pageIndexes)
internalPdfDocument
- the internal pdf documentpageRotation
- Degrees of rotationpageIndexes
- Indexes of the pages to rotate in an IEnumerable, list or array. PageIndex is a 'Zero based' page number, the first page being 0public static InternalPdfDocument copyPage(InternalPdfDocument internalPdfDocument, Iterable<Integer> pageIndexes)
internalPdfDocument
- the internal pdf documentpageIndexes
- An Iterable of page indexes to copy into the new PDF.InternalPdfDocument
public static void resizePage(InternalPdfDocument internalPdfDocument, double pageWidth, double pageHeight, Integer pageIndex)
internalPdfDocument
- the internal pdf documentpageWidth
- Desired page width, in millimeterspageHeight
- Desired page height, in millimeterspageIndex
- Selected page indexes.Copyright © 2022–2023 Iron Software. All rights reserved.