Class PdfDocumentInfo


  • public class PdfDocumentInfo
    extends java.lang.Object
    • Field Detail

      • PDF20_DEPRECATED_KEYS

        static final PdfName[] PDF20_DEPRECATED_KEYS
    • Constructor Detail

      • PdfDocumentInfo

        PdfDocumentInfo​(PdfDictionary pdfObject,
                        PdfDocument pdfDocument)
        Create a PdfDocumentInfo based on the passed PdfDictionary.
        Parameters:
        pdfObject - PdfDictionary containing PdfDocumentInfo
      • PdfDocumentInfo

        PdfDocumentInfo​(PdfDocument pdfDocument)
        Create a default, empty PdfDocumentInfo and link it to the passed PdfDocument
        Parameters:
        pdfDocument - document the info will belong to
    • Method Detail

      • setAuthor

        public PdfDocumentInfo setAuthor​(java.lang.String author)
      • setSubject

        public PdfDocumentInfo setSubject​(java.lang.String subject)
      • setKeywords

        public PdfDocumentInfo setKeywords​(java.lang.String keywords)
      • setCreator

        public PdfDocumentInfo setCreator​(java.lang.String creator)
      • setProducer

        public PdfDocumentInfo setProducer​(java.lang.String producer)
        Sets a producer line for the PdfDocument described by this instance.
        Parameters:
        producer - is a new producer line to set
        Returns:
        this instance
      • getTitle

        public java.lang.String getTitle()
      • getAuthor

        public java.lang.String getAuthor()
      • getSubject

        public java.lang.String getSubject()
      • getKeywords

        public java.lang.String getKeywords()
      • getCreator

        public java.lang.String getCreator()
      • getProducer

        public java.lang.String getProducer()
      • getTrapped

        public PdfName getTrapped()
      • removeCreationDate

        public PdfDocumentInfo removeCreationDate()
        Remove creation date from the document info dictionary.
        Returns:
        this instance.
      • setMoreInfo

        public void setMoreInfo​(java.util.Map<java.lang.String,​java.lang.String> moreInfo)
      • setMoreInfo

        public void setMoreInfo​(java.lang.String key,
                                java.lang.String value)
      • getMoreInfo

        public java.lang.String getMoreInfo​(java.lang.String key)
      • getStringValue

        private java.lang.String getStringValue​(PdfName name)