Class | PDF::Reader::Buffer |
In: |
lib/pdf/reader/buffer.rb
|
Parent: | Object |
An internal PDF::Reader class that mediates access to the underlying PDF File or IO Stream
The Xref table in a PDF file acts as an aid for finding the location of various objects in the file. This method attempts to locate the byte offset of the xref table in the underlying IO stream.
reads the requested number of bytes from the underlying IO stream.
length should be a positive integer.
Reads from the buffer until the specified token is found, or the end of the buffer
bytes - the bytes to search for.
PDF files are processed by tokenising the content into a series of objects and commands. This prepares the buffer for use by reading the next line of tokens into memory.