Class MetadataManager

    • Constructor Detail

    • Method Detail

      • getAuthor

        public String getAuthor()
        Gets the Author of the document.
        Returns:
        the author
      • getAnyMetadata

        public String getAnyMetadata​(String key)
        Gets any metadata value of the document form given key.
        Parameters:
        key - the key
        Returns:
        the metadata value
      • setAuthor

        public void setAuthor​(String value)
        Sets the Author of the document.
        Parameters:
        value - the value
      • setAnyMetadata

        public void setAnyMetadata​(String key,
                                   String value)
        Sets any metadata value of the document form given key.
        Parameters:
        key - the key
        value - the value
      • getCreationDate

        public String getCreationDate()
        Gets the PDF file creation DateTime.
        Returns:
        the creation date
      • setCreationDate

        public void setCreationDate​(String value)
        Sets the PDF file creation DateTime.
        Parameters:
        value - the value
      • setModifiedDate

        public String setModifiedDate()
        Gets the PDF file last-modified DateTime.
        Returns:
        the modified date
      • setModifiedDate

        public void setModifiedDate​(String value)
        Sets the PDF file last-modified DateTime.
        Parameters:
        value - the value
      • getCreator

        public String getCreator()
        Gets the Creator of the document.
        Returns:
        the creator
      • setCreator

        public void setCreator​(String value)
        Sets the Creator of the document.
        Parameters:
        value - the value
      • getKeywords

        public String getKeywords()
        Gets Keywords of the document. This helps search indexes and operating systems correctly index the PDF.
        Returns:
        the keywords
      • setKeywords

        public void setKeywords​(String value)
        Sets Keywords of the document. This helps search indexes and operating systems correctly index the PDF.
        Parameters:
        value - the value
      • getProducer

        public String getProducer()
        Gets the Producer of the document.
        Returns:
        the producer
      • setProducer

        public void setProducer​(String value)
        Sets the Producer of the document.
        Parameters:
        value - the value
      • getSubject

        public String getSubject()
        Gets Subject of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.
        Returns:
        the subject
      • setSubject

        public void setSubject​(String value)
        Sets the Subject of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.
        Parameters:
        value - the value
      • getTitle

        public String getTitle()
        Gets the Title of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.
        Returns:
        the title
      • setTitle

        public void setTitle​(String value)
        Sets the Title of the document. This helps search indexes and operating systems correctly index the PDF, and may appear in PDF viewer software.
        Parameters:
        value - the value
      • removeMetadata

        public void removeMetadata​(String key)
        Method for removing Metadata property by its name.
        Parameters:
        key - The name of the property.