7 #ifndef PDF_MEMORY_OBJECT_STREAM_H
8 #define PDF_MEMORY_OBJECT_STREAM_H
12 #include "PdfObjectStreamProvider.h"
30 PODOFO_PRIVATE_FRIEND(
class PdfImmediateWriter);
38 void Clear()
override;
40 bool TryCopyFrom(
const PdfObjectStreamProvider& rhs)
override;
42 bool TryMoveFrom(PdfObjectStreamProvider&& rhs)
override;
44 std::unique_ptr<InputStream> GetInputStream(
PdfObject& obj)
override;
46 std::unique_ptr<OutputStream> GetOutputStream(
PdfObject& obj)
override;
48 void Write(
OutputStream& stream,
const PdfStatefulEncrypt* encrypt)
override;
50 size_t GetLength()
const override;
52 const charbuff& GetBuffer()
const {
return m_buffer; }
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
An interface for writing blocks of data to a data source.
Definition: OutputStream.h:18
A list of PdfObjects that constitutes the indirect object list of the document The PdfParser will rea...
Definition: PdfIndirectObjectList.h:30
A PDF stream can be appended to any PdfObject and can contain arbitrary data.
Definition: PdfMemoryObjectStream.h:27
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition: basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16