PoDoFo 0.9.20
|
#include <PdfXRefStream.h>
Public Member Functions | |
PdfXRefStream (PdfWriter &writer) | |
uint64_t | GetOffset () const override |
bool | ShouldSkipWrite (const PdfReference &ref) override |
![]() | |
void | AddInUseObject (const PdfReference &ref, nullable< uint64_t > offset) |
void | AddFreeObject (const PdfReference &ref) |
void | Write (OutputStreamDevice &device, charbuff &buffer) |
uint32_t | GetSize () const |
void | SetFirstEmptyBlock () |
Protected Member Functions | |
void | BeginWrite (OutputStreamDevice &device, charbuff &buffer) override |
void | WriteSubSection (OutputStreamDevice &device, uint32_t first, uint32_t count, charbuff &buffer) override |
void | WriteXRefEntry (OutputStreamDevice &device, const PdfReference &ref, const PdfXRefEntry &entry, charbuff &buffer) override |
void | EndWriteImpl (OutputStreamDevice &device, charbuff &buffer) override |
Creates an XRef table that is a stream object. Requires at least PDF 1.5. XRef streams are more compact than normal XRef tables.
PdfXRefStream::PdfXRefStream | ( | PdfWriter & | writer | ) |
|
overrideprotectedvirtual |
Called at the start of writing the XRef table. This method can be overwritten in subclasses to write a general header for the XRef table.
device | the output device to which the XRef table should be written. |
Reimplemented from PoDoFo::PdfXRef.
|
overrideprotectedvirtual |
Sub classes can overload this method to finish a XRef table.
device | the output device to which the XRef table should be written. |
Reimplemented from PoDoFo::PdfXRef.
|
overridevirtual |
Reimplemented from PoDoFo::PdfXRef.
|
overridevirtual |
Should skip writing for this object
ref | reference of the object |
Reimplemented from PoDoFo::PdfXRef.
|
overrideprotectedvirtual |
Begin an XRef subsection. All following calls of WriteXRefEntry belong to this XRef subsection.
device | the output device to which the XRef table should be written. |
first | the object number of the first object in this subsection |
count | the number of entries in this subsection |
Reimplemented from PoDoFo::PdfXRef.
|
overrideprotectedvirtual |
Write a single entry to the XRef table
device | the output device to which the XRef table should be written. |
ref | the reference of object of the entry |
entry | the XRefEntry of this object |
Reimplemented from PoDoFo::PdfXRef.