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 PdfUA1Checker
checker
-
Constructor Summary
Constructors Constructor Description PdfUAPageFactory(PdfUA1Checker checker)
Instantiates a newPdfUAPageFactory
instance based onPdfUA1Checker
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfPage
createPdfPage(PdfDictionary pdfObject)
CreatePdfPage
on the base of the pagePdfDictionary
.PdfPage
createPdfPage(PdfDocument pdfDocument, PageSize pageSize)
CreatePdfPage
with given page size and add it to thePdfDocument
.
-
-
-
Field Detail
-
checker
private final PdfUA1Checker checker
-
-
Constructor Detail
-
PdfUAPageFactory
public PdfUAPageFactory(PdfUA1Checker checker)
Instantiates a newPdfUAPageFactory
instance based onPdfUA1Checker
.- Parameters:
checker
- the PDF/UA checker
-
-
Method Detail
-
createPdfPage
public PdfPage createPdfPage(PdfDictionary pdfObject)
Description copied from interface:IPdfPageFactory
CreatePdfPage
on the base of the pagePdfDictionary
.- Specified by:
createPdfPage
in interfaceIPdfPageFactory
- Parameters:
pdfObject
- thePdfDictionary
object on which thePdfPage
will be based- Returns:
- The pdf page.
-
createPdfPage
public PdfPage createPdfPage(PdfDocument pdfDocument, PageSize pageSize)
Description copied from interface:IPdfPageFactory
CreatePdfPage
with given page size and add it to thePdfDocument
.- Specified by:
createPdfPage
in interfaceIPdfPageFactory
- Parameters:
pdfDocument
-PdfDocument
to add pagepageSize
-PageSize
of the created page- Returns:
- The Pdf page.
-
-