Package com.itextpdf.pdfa
Class PdfADocumentInfoHelper
- java.lang.Object
-
- com.itextpdf.kernel.pdf.DocumentInfoHelper
-
- com.itextpdf.pdfa.PdfADocumentInfoHelper
-
public class PdfADocumentInfoHelper extends DocumentInfoHelper
The class is helper which used for PDF/A document to properly configure PDF document's info dictionary.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDocument
pdfDocument
-
Constructor Summary
Constructors Constructor Description PdfADocumentInfoHelper(PdfDocument pdfDocument)
Instantiates a newPdfADocumentInfoHelper
instance based on the document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustDocumentInfo(PdfDocumentInfo documentInfo)
Adjusts document info before it's flushing and adding to the trailer if required, seeDocumentInfoHelper.shouldAddDocumentInfoToTrailer()
.boolean
shouldAddDocumentInfoToTrailer()
If document info dictionary should be added to the trailer.
-
-
-
Field Detail
-
pdfDocument
private final PdfDocument pdfDocument
-
-
Constructor Detail
-
PdfADocumentInfoHelper
public PdfADocumentInfoHelper(PdfDocument pdfDocument)
Instantiates a newPdfADocumentInfoHelper
instance based on the document.- Parameters:
pdfDocument
- the pdf document which will use that helper
-
-
Method Detail
-
shouldAddDocumentInfoToTrailer
public boolean shouldAddDocumentInfoToTrailer()
If document info dictionary should be added to the trailer..- Overrides:
shouldAddDocumentInfoToTrailer
in classDocumentInfoHelper
- Returns:
true
if should be added, otherwisefalse
-
adjustDocumentInfo
public void adjustDocumentInfo(PdfDocumentInfo documentInfo)
Adjusts document info before it's flushing and adding to the trailer if required, seeDocumentInfoHelper.shouldAddDocumentInfoToTrailer()
..- Overrides:
adjustDocumentInfo
in classDocumentInfoHelper
- Parameters:
documentInfo
- thePdfDocumentInfo
instance to adjust
-
-