Class MetadataManager
- java.lang.Object
- 
- com.ironsoftware.ironpdf.metadata.MetadataManager
 
- 
 public class MetadataManager extends Object Class used to read and edit MetaData in aPdfDocument.
- 
- 
Constructor SummaryConstructors Constructor Description MetadataManager(InternalPdfDocument internalPdfDocument)Please get MetadataManager byPdfDocument.getMetadata()instead.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnyMetadata(String key)Gets any metadata value of the document form given key.StringgetAuthor()Gets the Author of the document.StringgetCreationDate()Gets the PDF file creation DateTime.StringgetCreator()Gets the Creator of the document.StringgetKeywords()Gets Keywords of the document.StringgetProducer()Gets the Producer of the document.StringgetSubject()Gets Subject of the document.StringgetTitle()Gets the Title of the document.voidremoveMetadata(String key)Method for removing Metadata property by its name.voidsetAnyMetadata(String key, String value)Sets any metadata value of the document form given key.voidsetAuthor(String value)Sets the Author of the document.voidsetCreationDate(String value)Sets the PDF file creation DateTime.voidsetCreator(String value)Sets the Creator of the document.voidsetKeywords(String value)Sets Keywords of the document.StringsetModifiedDate()Gets the PDF file last-modified DateTime.voidsetModifiedDate(String value)Sets the PDF file last-modified DateTime.voidsetProducer(String value)Sets the Producer of the document.voidsetSubject(String value)Sets the Subject of the document.voidsetTitle(String value)Sets the Title of the document.
 
- 
- 
- 
Constructor Detail- 
MetadataManagerpublic MetadataManager(InternalPdfDocument internalPdfDocument) Please get MetadataManager byPdfDocument.getMetadata()instead.- Parameters:
- internalPdfDocument- the internal pdf document
 
 
- 
 - 
Method Detail- 
getAuthorpublic String getAuthor() Gets the Author of the document.- Returns:
- the author
 
 - 
getAnyMetadatapublic String getAnyMetadata(String key) Gets any metadata value of the document form given key.- Parameters:
- key- the key
- Returns:
- the metadata value
 
 - 
setAuthorpublic void setAuthor(String value) Sets the Author of the document.- Parameters:
- value- the value
 
 - 
setAnyMetadatapublic void setAnyMetadata(String key, String value) Sets any metadata value of the document form given key.- Parameters:
- key- the key
- value- the value
 
 - 
getCreationDatepublic String getCreationDate() Gets the PDF file creation DateTime.- Returns:
- the creation date
 
 - 
setCreationDatepublic void setCreationDate(String value) Sets the PDF file creation DateTime.- Parameters:
- value- the value
 
 - 
setModifiedDatepublic String setModifiedDate() Gets the PDF file last-modified DateTime.- Returns:
- the modified date
 
 - 
setModifiedDatepublic void setModifiedDate(String value) Sets the PDF file last-modified DateTime.- Parameters:
- value- the value
 
 - 
getCreatorpublic String getCreator() Gets the Creator of the document.- Returns:
- the creator
 
 - 
setCreatorpublic void setCreator(String value) Sets the Creator of the document.- Parameters:
- value- the value
 
 - 
getKeywordspublic String getKeywords() Gets Keywords of the document. This helps search indexes and operating systems correctly index the PDF.- Returns:
- the keywords
 
 - 
setKeywordspublic void setKeywords(String value) Sets Keywords of the document. This helps search indexes and operating systems correctly index the PDF.- Parameters:
- value- the value
 
 - 
getProducerpublic String getProducer() Gets the Producer of the document.- Returns:
- the producer
 
 - 
setProducerpublic void setProducer(String value) Sets the Producer of the document.- Parameters:
- value- the value
 
 - 
getSubjectpublic 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
 
 - 
setSubjectpublic 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
 
 - 
getTitlepublic 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
 
 - 
setTitlepublic 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
 
 - 
removeMetadatapublic void removeMetadata(String key) Method for removing Metadata property by its name.- Parameters:
- key- The name of the property.
 
 
- 
 
-