|
pdfmm 0.9.20
|
#include <PdfData.h>
Public Member Functions | |
| PdfData (std::string &&data, const std::shared_ptr< size_t > &writeBeacon={ }) | |
| PdfData (const std::string_view &data, const std::shared_ptr< size_t > &writeBeacon={ }) | |
| PdfData (const PdfData &rhs) | |
| void | Write (PdfOutputDevice &device, PdfWriteMode writeMode, const PdfEncrypt *encrypt) const override |
| const PdfData & | operator= (const PdfData &rhs) |
| const std::string & | data () const |
| virtual void | Write (PdfOutputDevice &device, PdfWriteMode writeMode, const PdfEncrypt *encrypt) const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from mm::PdfDataProvider | |
| PdfDataProvider () | |
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!
This class is used in pdfmm to pad PdfVariants.
| mm::PdfData::PdfData | ( | std::string && | data, |
| const std::shared_ptr< size_t > & | writeBeacon = { } |
||
| ) |
| mm::PdfData::PdfData | ( | const std::string_view & | data, |
| const std::shared_ptr< size_t > & | writeBeacon = { } |
||
| ) |
| PdfData::PdfData | ( | const PdfData & | rhs | ) |
|
inline |
Access the data as a std::string
|
overridevirtual |
Write the complete datatype to a file.
| device | write the object to this device |
| writeMode | additional options for writing this object |
| encrypt | an encryption object which is used to encrypt this object or nullptr to not encrypt this object |
Implements mm::PdfDataProvider.