Package com.itextpdf.kernel.pdf
Class DocumentInfoHelper
java.lang.Object
com.itextpdf.kernel.pdf.DocumentInfoHelper
- Direct Known Subclasses:
-
PdfADocumentInfoHelper
The class is helper which used inside
PdfDocument to properly configure PDF document's info dictionary.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustDocumentInfo(PdfDocumentInfo documentInfo) Adjusts document info before it's flushing and adding to the trailer if required, seeshouldAddDocumentInfoToTrailer().booleanIf document info dictionary should be added to the trailer.
-
Constructor Details
-
DocumentInfoHelper
public DocumentInfoHelper()
-
-
Method Details
-
shouldAddDocumentInfoToTrailer
public boolean shouldAddDocumentInfoToTrailer()If document info dictionary should be added to the trailer.- Returns:
-
trueif should be added, otherwisefalse
-
adjustDocumentInfo
Adjusts document info before it's flushing and adding to the trailer if required, seeshouldAddDocumentInfoToTrailer().- Parameters:
-
documentInfo- thePdfDocumentInfoinstance to adjust
-