|
PoDoFo 0.9.20
|
#include <PdfImmediateWriter.h>
Public Member Functions | |
| PdfImmediateWriter (PdfIndirectObjectList &objects, const PdfObject &trailer, OutputStreamDevice &device, PdfVersion version=PdfVersion::V1_5, PdfEncrypt *encrypt=nullptr, PdfSaveOptions opts=PdfSaveOptions::None) | |
| PdfWriteFlags | GetWriteFlags () const |
| PdfVersion | GetPdfVersion () const |
A kind of PdfWriter that writes objects with streams immediately to an OutputStreamDevice
| PdfImmediateWriter::PdfImmediateWriter | ( | PdfIndirectObjectList & | objects, |
| const PdfObject & | trailer, | ||
| OutputStreamDevice & | device, | ||
| PdfVersion | version = PdfVersion::V1_5, | ||
| PdfEncrypt * | encrypt = nullptr, | ||
| PdfSaveOptions | opts = PdfSaveOptions::None ) |
Create a new PdfWriter that writes objects with streams immediately to an OutputStreamDevice
This has the advantage that large documents can be created without having to keep the whole document in memory.
| device | all stream streams are immediately written to this output device while the document is created. |
| objects | a vector of objects containing the objects which are written to disk |
| trailer | the trailer object |
| version | the PDF version of the document to write. The PDF version can only be set in the constructor as it is the first item written to the document on disk. |
| encrypt | pointer to an encryption object or nullptr. If not nullptr the PdfEncrypt object will be copied and used to encrypt the created document. |
| writeMode | additional options for writing the pdf |
| PdfVersion PdfImmediateWriter::GetPdfVersion | ( | ) | const |
Get the PDF version of the document The PDF version can only be set in the constructor as it is the first item written to the document on disk
| PdfWriteFlags PdfImmediateWriter::GetWriteFlags | ( | ) | const |
Get the write mode used for writing the PDF