Package com.itextpdf.pdfa
Class PdfADocumentInfoHelper
java.lang.Object
com.itextpdf.kernel.pdf.DocumentInfoHelper
com.itextpdf.pdfa.PdfADocumentInfoHelper
The class is helper which used for PDF/A document to properly configure PDF document's info dictionary.
-
Constructor Summary
ConstructorDescriptionPdfADocumentInfoHelper
(PdfDocument pdfDocument) Instantiates a newPdfADocumentInfoHelper
instance based on the document. -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustDocumentInfo
(PdfDocumentInfo documentInfo) Adjusts document info before it's flushing and adding to the trailer if required, seeDocumentInfoHelper.shouldAddDocumentInfoToTrailer()
.boolean
If document info dictionary should be added to the trailer.
-
Constructor Details
-
PdfADocumentInfoHelper
Instantiates a newPdfADocumentInfoHelper
instance based on the document.- Parameters:
-
pdfDocument
- the pdf document which will use that helper
-
-
Method Details
-
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
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
-