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.ObjectThe class is helper which used insidePdfDocumentto 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 voidadjustDocumentInfo(PdfDocumentInfo documentInfo)Adjusts document info before it's flushing and adding to the trailer if required, seeshouldAddDocumentInfoToTrailer().booleanshouldAddDocumentInfoToTrailer()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:
trueif 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- thePdfDocumentInfoinstance to adjust
-
-