Class PDFStream
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.pdf.writer.PDFStream
- All Implemented Interfaces:
- RMPropertyChanger,- Cloneable
This class represents a PDF stream object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThe dict for a stream may specify multiple filters.clone()Standard clone implementation.static byte[]getBytesEncoded(RMPDFWriter aWriter, byte[] bytes, int offset, int length) Returns Flate encoded bytes from the given raw bytes.Returns the stream dictionary.voidwritePDF(RMPDFWriter aWriter) Writes a stream to a 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, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
PDFStreamCreates a new stream from the byte array and map.
 
- 
- 
Method Details- 
getDictionaryReturns the stream dictionary.
- 
addFilterThe dict for a stream may specify multiple filters. The "Filter" property is either a single filter name or on array of filter names. If it's an array, the PDF reader will apply the filters in the order they appear. Call this method with the name of the filter after applying the encoding to the data.
- 
getBytesEncoded@Nullable public static byte[] getBytesEncoded(RMPDFWriter aWriter, byte[] bytes, int offset, int length) Returns Flate encoded bytes from the given raw bytes.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
writePDFWrites a stream to a pdf buffer.
 
-