Class PDFObjectStream

java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFObjectStream

public class PDFObjectStream extends Object
PDFObjectStream

A PDFObjectStream object is used to read pdf 1.5 compressed objects Compressed objects are stored in a stream with the following structure:

<<
/Type /ObjStm
/N     <number of compressed objects>
/First <byte offset of first object>
/Extends <ptr to another objstm>
>>
stream
<objnum1> <byteoffset1> <objnum2> <byteoffset2> ...
object1 object2 object3
endstream

The PDFObjectStream object reads the offset table at the beginning of the stream and stores away the objects invalid input: '&' byte numbers at initialization. To read a specific object, the PDFParser's stream data gets reset to the object stream's data and the position is set to the position in the table.