org.foray.pdf.object
Class PDFInfo

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFInfo

public class PDFInfo
extends PDFObject

Represents a PDF document information dictionary /Info object. See PDF Reference, 3rd Edition, Section 9.2.1.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFInfo(PDFDocument doc)
          Create a PDFInfo instance.
 
Method Summary
 boolean isEmpty()
          Indicates whether this item has any content.
 void setAuthor(String author)
          Sets the author of the document.
 void setCreationDate(Date creationDate)
          Sets the creation data of the document.
 void setCreator(String creator)
          Sets the creator of the document.
 void setKeywords(String keywords)
          Sets the keywords of the document.
 void setModDate(Date modDate)
          Sets the modification date of the document.
 void setProducer(String producer)
          Sets the producer of the document.
 void setSubject(String subject)
          Sets the subject of the document.
 void setTitle(String title)
          Sets the title of the document.
 String toPDF()
          Generates the PDF text necessary to represent the object, returning it as a String.
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFInfo

public PDFInfo(PDFDocument doc)
Create a PDFInfo instance.

Parameters:
doc - The parent PDF document.
Method Detail

setTitle

public void setTitle(String title)
Sets the title of the document.

Parameters:
title - The new title for the document.

setAuthor

public void setAuthor(String author)
Sets the author of the document.

Parameters:
author - The new author of the document.

setSubject

public void setSubject(String subject)
Sets the subject of the document.

Parameters:
subject - The new subject of the document.

setKeywords

public void setKeywords(String keywords)
Sets the keywords of the document.

Parameters:
keywords - The new keywords of the document.

setCreator

public void setCreator(String creator)
Sets the creator of the document.

Parameters:
creator - The new creator of the document.

setProducer

public void setProducer(String producer)
Sets the producer of the document.

Parameters:
producer - The new producer of the document.

setCreationDate

public void setCreationDate(Date creationDate)
Sets the creation data of the document.

Parameters:
creationDate - The new creation date of the document.

setModDate

public void setModDate(Date modDate)
Sets the modification date of the document.

Parameters:
modDate - The new modification date of the document.

isEmpty

public boolean isEmpty()
Indicates whether this item has any content.

Returns:
True iff this item has no content.

toPDF

public String toPDF()
Description copied from class: PDFObject
Generates the PDF text necessary to represent the object, returning it as a String.

Returns:
The PDF text necessary to represent the object.


Copyright © 2017. All rights reserved.