4#ifndef PDF_CANVAS_INPUT_DEVICE_H
5#define PDF_CANVAS_INPUT_DEVICE_H
7#include <podofo/auxiliary/InputDevice.h>
19class PODOFO_API PdfCanvasInputDevice final :
public InputStreamDevice
22 PdfCanvasInputDevice(
const PdfCanvas& canvas);
24 size_t GetLength()
const override;
25 size_t GetPosition()
const override;
26 bool Eof()
const override {
return m_eof; }
28 bool tryGetNextBuffer();
29 bool tryPopNextBuffer();
37 size_t getPos()
const;
38 void setPos(
size_t pos);
40 size_t readBuffer(
char* buffer,
size_t size,
bool& eof)
override;
42 bool peek(
char& ch)
const override;
45 std::list<const PdfObject*> m_contents;
47 bool m_deviceSwitchOccurred;
An interface that provides the necessary features for a painter to draw onto a PdfObject.
Definition PdfCanvas.h:25
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13