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,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMPDFWriter
 
 public class PDFFile extends RMObject This class represents a PDF file.
- 
- 
Constructor SummaryConstructors Constructor Description PDFFile()Creates a new pfile.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImageData(RMImageData anImageData)Adds an image data (uniqued) to file reference table, if not already present.byte[]getFileID()Generates and returns a unique file identifier.java.lang.StringgetFileIDString()Returns the file identifier as a hex string.PDFFontEntrygetFontEntry()Returns the current pdf font entry.PDFFontEntrygetFontEntry(RMFont aFont, int fontCharSet)Returns the pdf font entry for a specific font.java.util.Map<java.lang.String,PDFFontEntry>getFonts()Returns the pdf file's fonts.java.util.Map<java.lang.String,java.lang.String>getImages()Returns a map of image data names to image data references.java.util.MapgetInfoDict()Returns the PDF file's info dictionary.PDFPagesTreegetPagesTree()Returns the PDF file's pages tree.RMImageDatagetUniqueImageData(RMImageData anImageData)Returns a unique image data for given image data.java.lang.StringgetVersion()Returns the version of pdf being generated.PDFXTablegetXRefTable()Returns the cross reference table.voidsetAuthor(java.lang.String s)Sets the author of the pdf file.voidsetCreator(java.lang.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(java.util.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.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getVersionpublic java.lang.String getVersion() Returns the version of pdf being generated.
 - 
setVersionpublic void setVersion(float aVersion) Sets the version of the pdf being generated.
 - 
setViewerPreferencespublic void setViewerPreferences(java.util.Map vprefs) Add a viewer preferences dictionary to the file. See section 8.1 of the pdf spec
 - 
getXRefTablepublic PDFXTable getXRefTable() Returns the cross reference table.
 - 
getInfoDictpublic java.util.Map getInfoDict() Returns the PDF file's info dictionary.
 - 
getPagesTreepublic PDFPagesTree getPagesTree() Returns the PDF file's pages tree.
 - 
setAuthorpublic void setAuthor(java.lang.String s) Sets the author of the pdf file.
 - 
setCreatorpublic void setCreator(java.lang.String s) Sets the creator of the pdf file.
 - 
getFileIDpublic byte[] getFileID() Generates and returns a unique file identifier.
 - 
getFileIDStringpublic java.lang.String getFileIDString() Returns the file identifier as a hex string.
 - 
getFontspublic java.util.Map<java.lang.String,PDFFontEntry> getFonts() Returns the pdf file's fonts.
 - 
getFontEntrypublic PDFFontEntry getFontEntry() Returns the current pdf font entry.
 - 
setFontEntrypublic void setFontEntry(PDFFontEntry aFontEntry) Sets the current font entry.
 - 
getFontEntrypublic PDFFontEntry getFontEntry(RMFont aFont, int fontCharSet) Returns the pdf font entry for a specific font.
 - 
getImagespublic java.util.Map<java.lang.String,java.lang.String> getImages() Returns a map of image data names to image data references.
 - 
addImageDatapublic void addImageData(RMImageData anImageData) Adds an image data (uniqued) to file reference table, if not already present.
 - 
getUniqueImageDatapublic RMImageData getUniqueImageData(RMImageData anImageData) Returns a unique image data for given image data.
 - 
writeXRefTablepublic long writeXRefTable(RMPDFWriter aWriter) Writes all entry objects to pdf buffer.
 
- 
 
-