Package com.itextpdf.pdfua
Class PdfUAPageFactory
- java.lang.Object
-
- com.itextpdf.pdfua.PdfUAPageFactory
-
- All Implemented Interfaces:
IPdfPageFactory
class PdfUAPageFactory extends java.lang.Object implements IPdfPageFactory
The class implements PDF page factory which is used for creating correct PDF/UA documents.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfUACheckerchecker
-
Constructor Summary
Constructors Constructor Description PdfUAPageFactory(PdfUA1Checker checker)Deprecated.in favour ofPdfUAPageFactory(PdfUAChecker)PdfUAPageFactory(PdfUAChecker checker)Instantiates a newPdfUAPageFactoryinstance based onPdfUAChecker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfPagecreatePdfPage(PdfDictionary pdfObject)CreatePdfPageon the base of the pagePdfDictionary.PdfPagecreatePdfPage(PdfDocument pdfDocument, PageSize pageSize)CreatePdfPagewith given page size and add it to thePdfDocument.
-
-
-
Field Detail
-
checker
private final PdfUAChecker checker
-
-
Constructor Detail
-
PdfUAPageFactory
@Deprecated public PdfUAPageFactory(PdfUA1Checker checker)
Deprecated.in favour ofPdfUAPageFactory(PdfUAChecker)Instantiates a newPdfUAPageFactoryinstance based onPdfUA1Checker.- Parameters:
checker- the PDF/UA checker
-
PdfUAPageFactory
public PdfUAPageFactory(PdfUAChecker checker)
Instantiates a newPdfUAPageFactoryinstance based onPdfUAChecker.- Parameters:
checker- the PDF/UA checker
-
-
Method Detail
-
createPdfPage
public PdfPage createPdfPage(PdfDictionary pdfObject)
Description copied from interface:IPdfPageFactoryCreatePdfPageon the base of the pagePdfDictionary.- Specified by:
createPdfPagein interfaceIPdfPageFactory- Parameters:
pdfObject- thePdfDictionaryobject on which thePdfPagewill be based- Returns:
- The pdf page.
-
createPdfPage
public PdfPage createPdfPage(PdfDocument pdfDocument, PageSize pageSize)
Description copied from interface:IPdfPageFactoryCreatePdfPagewith given page size and add it to thePdfDocument.- Specified by:
createPdfPagein interfaceIPdfPageFactory- Parameters:
pdfDocument-PdfDocumentto add pagepageSize-PageSizeof the created page- Returns:
- The Pdf page.
-
-