Package pdf
Class PDFInfo
- java.lang.Object
-
- pdf.PDFObject
-
- pdf.PDFInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class PDFInfo extends PDFObject
This class stores details of the author, the PDF generator etc. The values are accessible via the PDFDocument class.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class pdf.PDFObject
objser, pdfDocument
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAuthor()Get the value of author.java.lang.StringgetCreator()PDF has two values, a Creator and a Producer.java.lang.StringgetKeywords()Get the value of keywords.java.lang.StringgetSubject()Get the value of subject.java.lang.StringgetTitle()Get the value of title.voidsetAuthor(java.lang.String v)Set the value of author.voidsetCreator(java.lang.String v)Set the value of creator.voidsetKeywords(java.lang.String v)Set the value of keywords.voidsetSubject(java.lang.String v)Set the value of subject.voidsetTitle(java.lang.String v)Set the value of title.voidwrite(java.io.OutputStream os)Writes the object to the output stream.-
Methods inherited from class pdf.PDFObject
getPDFDocument, getSerialID, getType, toArray, toString, writeEnd, writeStart
-
-
-
-
Method Detail
-
getAuthor
public java.lang.String getAuthor()
Get the value of author.- Returns:
- value of author.
-
setAuthor
public void setAuthor(java.lang.String v)
Set the value of author.- Parameters:
v- Value to assign to author.
-
getCreator
public java.lang.String getCreator()
PDF has two values, a Creator and a Producer. The creator field is available for calling code. The producer is fixed by this library. Get the value of creator.- Returns:
- value of creator.
-
setCreator
public void setCreator(java.lang.String v)
Set the value of creator.- Parameters:
v- Value to assign to creator.
-
getTitle
public java.lang.String getTitle()
Get the value of title.- Returns:
- value of title.
-
setTitle
public void setTitle(java.lang.String v)
Set the value of title.- Parameters:
v- Value to assign to title.
-
getSubject
public java.lang.String getSubject()
Get the value of subject.- Returns:
- value of subject.
-
setSubject
public void setSubject(java.lang.String v)
Set the value of subject.- Parameters:
v- Value to assign to subject.
-
getKeywords
public java.lang.String getKeywords()
Get the value of keywords.- Returns:
- value of keywords.
-
setKeywords
public void setKeywords(java.lang.String v)
Set the value of keywords.- Parameters:
v- Value to assign to keywords.
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from class:PDFObjectWrites the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
-
-