Class PDFFile
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.pdf.writer.PDFFile
- All Implemented Interfaces:
RMPropertyChanger,Cloneable
- Direct Known Subclasses:
RMPDFWriter
This class represents a PDF file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImageData(RMImageData anImageData) Adds an image data (uniqued) to file reference table, if not already present.byte[]Generates and returns a unique file identifier.Returns the file identifier as a hex string.Returns the current pdf font entry.getFontEntry(RMFont aFont, int fontCharSet) Returns the pdf font entry for a specific font.getFonts()Returns the pdf file's fonts.Returns a map of image data names to image data references.Returns the PDF file's info dictionary.Returns the PDF file's pages tree.getUniqueImageData(RMImageData anImageData) Returns a unique image data for given image data.Returns the version of pdf being generated.Returns the cross reference table.voidSets the author of the pdf file.voidsetCreator(String s) Sets the creator of the pdf file.voidsetFontEntry(PDFFontEntry aFontEntry) Sets the current font entry.voidsetVersion(float aVersion) Sets the version of the pdf being generated.voidsetViewerPreferences(Map vprefs) Add a viewer preferences dictionary to the file.longwriteXRefTable(RMPDFWriter aWriter) Writes all entry objects to pdf buffer.Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
PDFFile
public PDFFile()Creates a new pfile.
-
-
Method Details
-
getVersion
Returns the version of pdf being generated. -
setVersion
public void setVersion(float aVersion) Sets the version of the pdf being generated. -
setViewerPreferences
Add a viewer preferences dictionary to the file. See section 8.1 of the pdf spec -
getXRefTable
Returns the cross reference table. -
getInfoDict
Returns the PDF file's info dictionary. -
getPagesTree
Returns the PDF file's pages tree. -
setAuthor
Sets the author of the pdf file. -
setCreator
Sets the creator of the pdf file. -
getFileID
public byte[] getFileID()Generates and returns a unique file identifier. -
getFileIDString
Returns the file identifier as a hex string. -
getFonts
Returns the pdf file's fonts. -
getFontEntry
Returns the current pdf font entry. -
setFontEntry
Sets the current font entry. -
getFontEntry
Returns the pdf font entry for a specific font. -
getImages
Returns a map of image data names to image data references. -
addImageData
Adds an image data (uniqued) to file reference table, if not already present. -
getUniqueImageData
Returns a unique image data for given image data. -
writeXRefTable
Writes all entry objects to pdf buffer.
-