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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfADocumentInfoHelper(PdfDocument pdfDocument) Instantiates a newPdfADocumentInfoHelperinstance based on the document. -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustDocumentInfo(PdfDocumentInfo documentInfo) Adjusts document info before it's flushing and adding to the trailer if required, seeDocumentInfoHelper.shouldAddDocumentInfoToTrailer().booleanIf document info dictionary should be added to the trailer.
-
Field Details
-
pdfDocument
-
-
Constructor Details
-
PdfADocumentInfoHelper
Instantiates a newPdfADocumentInfoHelperinstance 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:
shouldAddDocumentInfoToTrailerin classDocumentInfoHelper- Returns:
trueif should be added, otherwisefalse
-
adjustDocumentInfo
Adjusts document info before it's flushing and adding to the trailer if required, seeDocumentInfoHelper.shouldAddDocumentInfoToTrailer()..- Overrides:
adjustDocumentInfoin classDocumentInfoHelper- Parameters:
documentInfo- thePdfDocumentInfoinstance to adjust
-