PoDoFo  1.0.0-dev
Public Member Functions | Protected Member Functions | List of all members
PoDoFo::PdfCanvasInputDevice Class Referencefinal

There are Pdfs spanning delimiters or begin/end tags into contents streams. More...

#include <PdfCanvasInputDevice.h>

Inheritance diagram for PoDoFo::PdfCanvasInputDevice:
PoDoFo::InputStreamDevice PoDoFo::InputStream

Public Member Functions

 PdfCanvasInputDevice (const PdfCanvas &canvas)
 
size_t GetLength () const override
 
size_t GetPosition () const override
 
bool Eof () const override
 
- Public Member Functions inherited from PoDoFo::InputStreamDevice
bool Peek (char &ch) const
 Peek at next char in stream. More...
 
- Public Member Functions inherited from PoDoFo::InputStream
void Read (char *buffer, size_t size)
 Read data from the device. More...
 
size_t Read (char *buffer, size_t size, bool &eof)
 Read data from the device. More...
 
char ReadChar ()
 Get next char from stream. More...
 
bool Read (char &ch)
 Get next char from stream. More...
 
void CopyTo (OutputStream &stream)
 Copy this stream to another. More...
 
void CopyTo (OutputStream &stream, size_t size)
 Copy this stream to another. More...
 

Protected Member Functions

size_t readBuffer (char *buffer, size_t size, bool &eof) override
 Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes.
 
bool readChar (char &ch) override
 Read the next char in stream. More...
 
bool peek (char &ch) const override
 Peek at next char in stream. More...
 
- Protected Member Functions inherited from PoDoFo::InputStreamDevice
 InputStreamDevice (bool init)
 
void checkRead () const override
 Optional checks before reading By default does nothing.
 

Additional Inherited Members

- Static Protected Member Functions inherited from PoDoFo::InputStream
static size_t ReadBuffer (InputStream &stream, char *buffer, size_t size, bool &eof)
 
static bool ReadChar (InputStream &stream, char &ch)
 

Detailed Description

There are Pdfs spanning delimiters or begin/end tags into contents streams.

Let's create a device correctly spanning I/O reads into these

Member Function Documentation

◆ peek()

bool PdfCanvasInputDevice::peek ( char &  ch) const
overrideprotectedvirtual

Peek at next char in stream.

/returns true if success, false if EOF

Implements PoDoFo::InputStreamDevice.

◆ readChar()

bool PdfCanvasInputDevice::readChar ( char &  ch)
overrideprotectedvirtual

Read the next char in stream.

/returns true if success, false if EOF

Reimplemented from PoDoFo::InputStream.


The documentation for this class was generated from the following files: