Package com.itextpdf.pdfua
Class PdfUAPageFactory
java.lang.Object
com.itextpdf.pdfua.PdfUAPageFactory
- All Implemented Interfaces:
-
IPdfPageFactory
The class implements PDF page factory which is used for creating correct PDF/UA documents.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfUAPageFactory(PdfUAChecker checker) Instantiates a newPdfUAPageFactoryinstance based onPdfUAChecker. -
Method Summary
Modifier and TypeMethodDescriptioncreatePdfPage(PdfDictionary pdfObject) CreatePdfPageon the base of the pagePdfDictionary.createPdfPage(PdfDocument pdfDocument, PageSize pageSize) CreatePdfPagewith given page size and add it to thePdfDocument.
-
Constructor Details
-
PdfUAPageFactory
Instantiates a newPdfUAPageFactoryinstance based onPdfUAChecker.- Parameters:
-
checker- the PDF/UA checker
-
-
Method Details
-
createPdfPage
Description copied from interface:IPdfPageFactoryCreatePdfPageon the base of the pagePdfDictionary.- Specified by:
-
createPdfPagein interfaceIPdfPageFactory - Parameters:
-
pdfObject- thePdfDictionaryobject on which thePdfPagewill be based - Returns:
-
The
PdfPagebased on thePdfDictionary
-
createPdfPage
Description copied from interface:IPdfPageFactoryCreatePdfPagewith given page size and add it to thePdfDocument.- Specified by:
-
createPdfPagein interfaceIPdfPageFactory - Parameters:
-
pdfDocument-PdfDocumentto add page -
pageSize-PageSizeof the created page - Returns:
-
The
PdfPagebased on thePdfDocumentandPageSize
-