PDFWritable
public class PDFInfo extends PDFObject
Modifier and Type | Class | Description |
---|---|---|
static class |
PDFInfo.StandardKey |
The standard keys in the Document Information Dictionary
|
Constructor | Description |
---|---|
PDFInfo() |
Modifier and Type | Method | Description |
---|---|---|
protected static java.lang.String |
formatDateTime(java.util.Date time) |
Formats a date/time according to the PDF specification.
|
protected static java.lang.String |
formatDateTime(java.util.Date time,
java.util.TimeZone tz) |
Formats a date/time according to the PDF specification (D:YYYYMMDDHHmmSSOHH'mm').
|
java.lang.String |
getAuthor() |
|
java.util.Date |
getCreationDate() |
|
java.lang.String |
getCreator() |
|
java.lang.String |
getKeywords() |
|
java.util.Date |
getModDate() |
|
java.lang.String |
getProducer() |
|
java.lang.String |
getSubject() |
|
java.lang.String |
getTitle() |
|
void |
put(java.lang.String key,
java.lang.String value) |
Adds a custom property to this Info dictionary.
|
void |
setAuthor(java.lang.String a) |
set the author string
|
void |
setCreationDate(java.util.Date date) |
|
void |
setCreator(java.lang.String creator) |
set the creator string
|
void |
setKeywords(java.lang.String k) |
set the keywords string
|
void |
setModDate(java.util.Date date) |
Sets the date of the last modification.
|
void |
setProducer(java.lang.String producer) |
set the producer string
|
void |
setSubject(java.lang.String s) |
set the subject string
|
void |
setTitle(java.lang.String t) |
set the title string
|
byte[] |
toPDF() |
Encodes the object as a byte array for output to a PDF file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDFString
public java.lang.String getProducer()
public void setProducer(java.lang.String producer)
producer
- the producer stringpublic java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator
- the document creatorpublic java.lang.String getTitle()
public void setTitle(java.lang.String t)
t
- the document titlepublic java.lang.String getAuthor()
public void setAuthor(java.lang.String a)
a
- the document authorpublic java.lang.String getSubject()
public void setSubject(java.lang.String s)
s
- the document subjectpublic java.lang.String getKeywords()
public void setKeywords(java.lang.String k)
k
- the keywords for this documentpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date date)
date
- Date to store in the PDF as creation date. Use null to force current system date.public java.util.Date getModDate()
public void setModDate(java.util.Date date)
date
- the last modification date or null if there are no modificationspublic byte[] toPDF()
protected static java.lang.String formatDateTime(java.util.Date time, java.util.TimeZone tz)
time
- date/time value to formattz
- the time zoneprotected static java.lang.String formatDateTime(java.util.Date time)
time
- date/time value to formatpublic void put(java.lang.String key, java.lang.String value)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.