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 SummaryConstructors
- 
Method SummaryModifier 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.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
PDFFilepublic PDFFile()Creates a new pfile.
 
- 
- 
Method Details- 
getVersionReturns the version of pdf being generated.
- 
setVersionpublic void setVersion(float aVersion) Sets the version of the pdf being generated.
- 
setViewerPreferencesAdd a viewer preferences dictionary to the file. See section 8.1 of the pdf spec
- 
getXRefTableReturns the cross reference table.
- 
getInfoDictReturns the PDF file's info dictionary.
- 
getPagesTreeReturns the PDF file's pages tree.
- 
setAuthorSets the author of the pdf file.
- 
setCreatorSets the creator of the pdf file.
- 
getFileIDpublic byte[] getFileID()Generates and returns a unique file identifier.
- 
getFileIDStringReturns the file identifier as a hex string.
- 
getFontsReturns the pdf file's fonts.
- 
getFontEntryReturns the current pdf font entry.
- 
setFontEntrySets the current font entry.
- 
getFontEntryReturns the pdf font entry for a specific font.
- 
getImagesReturns a map of image data names to image data references.
- 
addImageDataAdds an image data (uniqued) to file reference table, if not already present.
- 
getUniqueImageDataReturns a unique image data for given image data.
- 
writeXRefTableWrites all entry objects to pdf buffer.
 
-