Class DocumentInfoHelper

java.lang.Object
com.itextpdf.kernel.pdf.DocumentInfoHelper
Direct Known Subclasses:
PdfADocumentInfoHelper

public class DocumentInfoHelper extends Object
The class is helper which used inside PdfDocument to properly configure PDF document's info dictionary.
  • 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, otherwise false
    • adjustDocumentInfo

      public void adjustDocumentInfo (PdfDocumentInfo documentInfo)
      Adjusts document info before it's flushing and adding to the trailer if required, see shouldAddDocumentInfoToTrailer().
      Parameters:
      documentInfo - the PdfDocumentInfo instance to adjust