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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustDocumentInfo
(PdfDocumentInfo documentInfo) Adjusts document info before it's flushing and adding to the trailer if required, seeshouldAddDocumentInfoToTrailer()
.boolean
If 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:
-
true
if should be added, otherwisefalse
-
adjustDocumentInfo
Adjusts document info before it's flushing and adding to the trailer if required, seeshouldAddDocumentInfoToTrailer()
.- Parameters:
-
documentInfo
- thePdfDocumentInfo
instance to adjust
-