Package com.itextpdf.pdfa
Class PdfAPageFactory
- java.lang.Object
-
- com.itextpdf.pdfa.PdfAPageFactory
-
- All Implemented Interfaces:
IPdfPageFactory
public class PdfAPageFactory extends java.lang.Object implements IPdfPageFactory
The class implements PDF page factory which is used for creating correct PDF/A documents.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfACheckerchecker
-
Constructor Summary
Constructors Constructor Description PdfAPageFactory(PdfAChecker checker)Instantiates a newPdfAPageFactoryinstance based onPdfAChecker.
-
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 PdfAChecker checker
-
-
Constructor Detail
-
PdfAPageFactory
public PdfAPageFactory(PdfAChecker checker)
Instantiates a newPdfAPageFactoryinstance based onPdfAChecker.- Parameters:
checker- the PDF/A checker
-
-
Method Detail
-
createPdfPage
public PdfPage createPdfPage(PdfDictionary pdfObject)
CreatePdfPageon the base of the pagePdfDictionary..- Specified by:
createPdfPagein interfaceIPdfPageFactory- Parameters:
pdfObject- thePdfDictionaryobject on which thePdfPagewill be based- Returns:
- created
PdfPage
-
createPdfPage
public PdfPage createPdfPage(PdfDocument pdfDocument, PageSize pageSize)
CreatePdfPagewith given page size and add it to thePdfDocument..- Specified by:
createPdfPagein interfaceIPdfPageFactory- Parameters:
pdfDocument-PdfDocumentto add pagepageSize-PageSizeof the created page- Returns:
- created
PdfPage
-
-