11#include "PdfResources.h"
13#include <podofo/auxiliary/Corners.h>
17enum class PdfStreamAppendFlags
21 NoSaveRestorePrior = 2
40 const PdfObject* GetContentsObject()
const;
66 PdfDictionaryElement& GetElement();
67 const PdfDictionaryElement& GetElement()
const;
76 void EnsureResourcesCreated();
90 virtual PdfObject* getContentsObject() = 0;
92 virtual PdfDictionaryElement& getElement() = 0;
97ENABLE_BITMASK_OPERATORS(PoDoFo::PdfStreamAppendFlags);
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
An unoriented rectangle defined by 2 points.
Definition Corners.h:20
An interface for writing blocks of data to a data source.
Definition OutputStream.h:18
A interface that provides the necessary features for a painter to draw onto a PdfObject.
Definition PdfCanvas.h:28
virtual PdfObjectStream & ResetContentsStream()=0
Reset the contents object and create a new stream for appending.
virtual bool TryGetRotationRadians(double &teta) const =0
Try getting the current canvas rotation.
virtual Corners GetRectRaw() const =0
Get the current canvas size in PDF Units.
virtual PdfObjectStream & GetOrCreateContentsStream(PdfStreamAppendFlags flags)=0
Get access an object that you can use to ADD drawing to.
virtual PdfResources & GetOrCreateResources()=0
Get or create the resource object of this page.
A PDF stream can be appended to any PdfObject and can contain arbitrary data.
Definition PdfObjectStream.h:87
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:35
A interface that provides a wrapper around /Resources.
Definition PdfResources.h:25
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
@ None
Do not add a default appearrance.