new PDFDocInfo()
PDFDocInfo is a high-level utility class that can be used to read and modify document's metadata.
Methods
-
<static> create(tr)
-
Constructor
Parameters:
Name Type Description tr
PDFNet.Obj Returns:
A promise that resolves to an object of type: "PDFDocInfo"
- Type
- PDFNet.PDFDocInfo
-
copy()
-
Copy Constructor
Returns:
A promise that resolves to an object of type: "PDFDocInfo"
- Type
- PDFNet.PDFDocInfo
-
getAuthor()
-
Returns:
A promise that resolves to the name of the person who created the document.
- Type
- string
-
getAuthorObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's author.
- Type
- PDFNet.Obj
-
getCreationDate()
-
Returns:
A promise that resolves to the date and time the document was created, in human-readable form.
- Type
- PDFNet.Date
-
getCreator()
-
Returns:
A promise that resolves to if the document was converted to PDF from another format, the name of the application that created the original document from which it was converted.
- Type
- string
-
getCreatorObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's creator.
- Type
- PDFNet.Obj
-
getKeywords()
-
Returns:
A promise that resolves to keywords associated with the document.
- Type
- string
-
getKeywordsObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's keywords.
- Type
- PDFNet.Obj
-
getModDate()
-
Returns:
A promise that resolves to the date and time the document was most recently modified, in human-readable form.
- Type
- PDFNet.Date
-
getProducer()
-
Returns:
A promise that resolves to if the document was converted to PDF from another format, the name of the application (for example, Distiller) that converted it to PDF.
- Type
- string
-
getProducerObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's producer.
- Type
- PDFNet.Obj
-
getSDFObj()
-
Returns:
A promise that resolves to document's SDF/Cos 'Info' dictionary or NULL if the info dictionary is not available.
- Type
- PDFNet.Obj
-
getSubject()
-
Returns:
A promise that resolves to the subject of the document.
- Type
- string
-
getSubjectObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's subject.
- Type
- PDFNet.Obj
-
getTitle()
-
Returns:
A promise that resolves to the document's title.
- Type
- string
-
getTitleObj()
-
Returns:
A promise that resolves to sDF/Cos string object representing document's title.
- Type
- PDFNet.Obj
-
setAuthor(author)
-
Set the author of the document.
Parameters:
Name Type Description author
string The name of the person who created the document.
-
setCreationDate(creation_date)
-
Set document's creation date.
Parameters:
Name Type Description creation_date
PDFNet.Date The date and time the document was created.
-
setCreator(creator)
-
Set document's creator.
Parameters:
Name Type Description creator
string The name of the application that created the original document.
-
setKeywords(Keywords)
-
Set keywords associated with the document.
Parameters:
Name Type Description Keywords
string Keywords associated with the document.
-
setModDate(mod_date)
-
Set document's modification date.
Parameters:
Name Type Description mod_date
PDFNet.Date The date and time the document was most recently modified.
-
setProducer(producer)
-
Set document's producer.
Parameters:
Name Type Description producer
string The name of the application that generated PDF.
-
setSubject(subject)
-
Set the subject of the document
Parameters:
Name Type Description subject
string The subject of the document.
-
setTitle(title)
-
Set document's title.
Parameters:
Name Type Description title
string New title of the document.