Package com.itextpdf.kernel.pdf
Class DocumentInfoHelper
- java.lang.Object
-
- com.itextpdf.kernel.pdf.DocumentInfoHelper
-
- Direct Known Subclasses:
PdfADocumentInfoHelper
public class DocumentInfoHelper extends java.lang.Object
The class is helper which used insidePdfDocument
to properly configure PDF document's info dictionary.
-
-
Constructor Summary
Constructors Constructor Description DocumentInfoHelper()
-
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, seeshouldAddDocumentInfoToTrailer()
.boolean
shouldAddDocumentInfoToTrailer()
If document info dictionary should be added to the trailer.
-
-
-
Method Detail
-
shouldAddDocumentInfoToTrailer
public boolean shouldAddDocumentInfoToTrailer()
If document info dictionary should be added to the trailer.- 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, seeshouldAddDocumentInfoToTrailer()
.- Parameters:
documentInfo
- thePdfDocumentInfo
instance to adjust
-
-