PoDoFo
1.0.0-dev
|
A datatype that allows to write arbitrary data to a PDF file. More...
#include <PdfData.h>
Public Member Functions | |
PdfData (const PdfData &)=default | |
PdfData (PdfData &&) noexcept=default | |
PdfData (charbuff &&data, const std::shared_ptr< size_t > &writeBeacon={ }) | |
Create a new PdfData object with valid PdfData. More... | |
PdfData (const bufferview &data, const std::shared_ptr< size_t > &writeBeacon={ }) | |
Create a new PdfData object with valid PdfData. More... | |
void | Write (OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt *encrypt, charbuff &buffer) const |
PdfData & | operator= (const PdfData &rhs)=default |
PdfData & | operator= (PdfData &&rhs)=default |
PdfData & | operator= (const bufferview &data) |
const charbuff & | GetBuffer () const |
Access the data as a std::string. More... | |
Public Member Functions inherited from PoDoFo::PdfDataProvider< PdfData > | |
std::string | ToString (PdfWriteFlags flags=PdfWriteFlags::None) const |
Converts the current object into a string representation which can be written directly to a PDF file on disc. More... | |
void | ToString (std::string &str, PdfWriteFlags flags=PdfWriteFlags::None) const |
A datatype that allows to write arbitrary data to a PDF file.
The user of this class has to ensure that the data written to the PDF file using this class is valid data for a PDF file!
PoDoFo::PdfData::PdfData | ( | charbuff && | data, |
const std::shared_ptr< size_t > & | writeBeacon = { } |
||
) |
|
explicit |
|
inline |
Access the data as a std::string.