pdfobjects::CInlineImage Class Reference

#include <cinlineimage.h>

Inheritance diagram for pdfobjects::CInlineImage:
pdfobjects::CStream pdfobjects::IProperty observer::ObserverHandler< T >

List of all members.

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

Detailed Description

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.

See also:
CStream

Constructor & Destructor Documentation

pdfobjects::CInlineImage::CInlineImage ( ::Object &  objDict,
const CStream::Buffer buffer 
)

Constructor. It will not be associated with a pdf.

Parameters:
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 
)
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.

Parameters:
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.


Member Function Documentation

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.

Returns:
Xpdf object(s).

Reimplemented from pdfobjects::CStream.

virtual CStream* pdfobjects::CInlineImage::_newInstance (  )  const [inline, protected, virtual]

Factory method.

Returns:
New instance of inline image.

Reimplemented from pdfobjects::CStream.

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.

Parameters:
str Output string.

Reimplemented from pdfobjects::CStream.

References pdfobjects::CStream::buffer, pdfobjects::CStream::dictionary, pdfobjects::CDict::getAllPropertyNames(), and pdfobjects::CDict::getProperty().


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