Example usage for Java com.itextpdf.kernel.pdf PdfDocument fields, constructors, methods, implement or subclass
The text is from its open source code.
PdfDocument(PdfReader reader) Open PDF document in reading mode. | |
PdfDocument(PdfWriter writer) Open PDF document in writing mode. |
void | addEventHandler(String type, IEventHandler handler) |
PdfPage | addNewPage(PageSize pageSize) Creates and adds new page with the specified page size. |
PdfPage | addNewPage(int index) Creates and inserts new page to the document. |
PdfPage | addNewPage() Creates and adds new page to the end of document. |
void | close() Close PDF document. |
PdfCatalog | getCatalog() Gets PDF catalog. |
PageSize | getDefaultPageSize() Gets default page size. |
PdfDocumentInfo | getDocumentInfo() Gets document information dictionary. |
int | getNumberOfPages() Gets number of pages of the document. |
PdfPage | getPage(int pageNum) Gets the page by page number. |
PdfPage | getPage(PdfDictionary pageDictionary) Gets the PdfPage instance by PdfDictionary . |
int | getPageNumber(PdfPage page) Gets page number by page. |
int | getPageNumber(PdfDictionary pageDictionary) Gets page number by PdfDictionary . |
void | setDefaultPageSize(PageSize pageSize) Sets default page size. |
PdfDocument | setTagged() Specifies that document shall contain tag structure. |