#include <cinlineimage.h>
Public Member Functions | |
| CInlineImage (::Object &objDict, const CStream::Buffer &buffer) | |
| CInlineImage (const CDict &dict, const CStream::Buffer &buf) | |
| CInlineImage (boost::weak_ptr< CPdf > p,::Object &objDict, const CStream::Buffer &buffer, const IndiRef &rf) | |
| CInlineImage () | |
| virtual void | getStringRepresentation (std::string &str) const |
| virtual ::Object * | _makeXpdfObject () const |
Protected Member Functions | |
| virtual CStream * | _newInstance () const |
According to pdf specification inline image is a special type of XObject that can be present only in a content stream.
It is a direct object and it can not be referenced from outside the content stream.
The string representation of inline image is different that of a normal stream. The advantage of inheriting from CStream is the transparent handling of different string representation (to CStream) simply by overloading getStringRepresentation() method.
| pdfobjects::CInlineImage::CInlineImage | ( | ::Object & | objDict, | |
| const CStream::Buffer & | buffer | |||
| ) |
Constructor. It will not be associated with a pdf.
| objDict | Inline image dictionary. | |
| buffer | Raw stream data. |
References pdfobjects::CStream::buffer, debug::DBG_DBG, pdfobjects::utils::dictFromXpdfObj(), pdfobjects::CStream::dictionary, pdfobjects::CDict::getPropertyCount(), and kernelPrintDbg.
| pdfobjects::CInlineImage::CInlineImage | ( | const CDict & | dict, | |
| const CStream::Buffer & | buf | |||
| ) |
References pdfobjects::CStream::buffer, debug::DBG_DBG, and kernelPrintDbg.
| pdfobjects::CInlineImage::CInlineImage | ( | boost::weak_ptr< CPdf > | p, | |
| ::Object & | objDict, | |||
| const CStream::Buffer & | buffer, | |||
| const IndiRef & | rf | |||
| ) |
Constructor. It will be associated with specified pdf.
| p | Pdf where it belongs. | |
| objDict | Inline image dictionary. | |
| buffer | Raw stream data. | |
| rf | Indirect reference numbers. |
References pdfobjects::CStream::buffer, debug::DBG_DBG, pdfobjects::utils::dictFromXpdfObj(), pdfobjects::CStream::dictionary, pdfobjects::CDict::getPropertyCount(), kernelPrintDbg, pdfobjects::CStream::setIndiRef(), and pdfobjects::CStream::setPdf().
| pdfobjects::CInlineImage::CInlineImage | ( | ) | [inline] |
Constructor. It will not be associated with a pdf.
| virtual ::Object* pdfobjects::CInlineImage::_makeXpdfObject | ( | ) | const [inline, virtual] |
This function is justfor catching programming errors, it does not make any sense to make an xpdf object from a direct object.
Reimplemented from pdfobjects::CStream.
| virtual CStream* pdfobjects::CInlineImage::_newInstance | ( | ) | const [inline, protected, virtual] |
| void pdfobjects::CInlineImage::getStringRepresentation | ( | std::string & | str | ) | const [virtual] |
Returns string representation of this object.
REMARK: String can contain also NOT printable characters like null character.
| str | Output string. |
Reimplemented from pdfobjects::CStream.
References pdfobjects::CStream::buffer, pdfobjects::CStream::dictionary, pdfobjects::CDict::getAllPropertyNames(), and pdfobjects::CDict::getProperty().