Java com.itextpdf.kernel.pdf PdfDocument fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.kernel.pdf PdfDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.kernel.pdf PdfDocument.

The text is from its open source code.

Constructor

PdfDocument(PdfReader reader)
Open PDF document in reading mode.
PdfDocument(PdfWriter writer)
Open PDF document in writing mode.

Method

voidaddEventHandler(String type, IEventHandler handler)
PdfPageaddNewPage(PageSize pageSize)
Creates and adds new page with the specified page size.
PdfPageaddNewPage(int index)
Creates and inserts new page to the document.
PdfPageaddNewPage()
Creates and adds new page to the end of document.
voidclose()
Close PDF document.
PdfCataloggetCatalog()
Gets PDF catalog.
PageSizegetDefaultPageSize()
Gets default page size.
PdfDocumentInfogetDocumentInfo()
Gets document information dictionary.
intgetNumberOfPages()
Gets number of pages of the document.
PdfPagegetPage(int pageNum)
Gets the page by page number.
PdfPagegetPage(PdfDictionary pageDictionary)
Gets the PdfPage instance by PdfDictionary .
intgetPageNumber(PdfPage page)
Gets page number by page.
intgetPageNumber(PdfDictionary pageDictionary)
Gets page number by PdfDictionary .
voidsetDefaultPageSize(PageSize pageSize)
Sets default page size.
PdfDocumentsetTagged()
Specifies that document shall contain tag structure.