10#include "PdfBaseDataTypes.h"
19class PODOFO_API PdfData final :
public PdfDataProvider<PdfData>
23 PdfData(
const PdfData&) =
default;
24 PdfData(PdfData&&)
noexcept =
default;
34 PdfData(charbuff&& data, std::shared_ptr<size_t> writeBeacon = { });
47 const PdfStatefulEncrypt* encrypt, charbuff& buffer)
const;
55 inline const charbuff&
GetBuffer()
const {
return m_data; }
59 std::shared_ptr<size_t> m_writeBeacon;
This file should be included as the FIRST file in every header of PoDoFo lib.
An interface for writing blocks of data to a data source.
Definition OutputStream.h:15
A datatype that allows to write arbitrary data to a PDF file.
Definition PdfData.h:20
PdfData(charbuff &&data, std::shared_ptr< size_t > writeBeacon={ })
Create a new PdfData object with valid PdfData.
PdfData(const bufferview &data, std::shared_ptr< size_t > writeBeacon={ })
Create a new PdfData object with valid PdfData.
const charbuff & GetBuffer() const
Access the data as a std::string.
Definition PdfData.h:55
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
cspan< char > bufferview
Convenient read-only char buffer span.
Definition basetypes.h:15
PdfWriteFlags
Specify additional options for writing the PDF.
Definition PdfDeclarations.h:136