Logo Search packages:      
Sourcecode: passepartout version File versions  Download package

PDF::Content Class Reference

#include <pdf.h>

Inheritance diagram for PDF::Content:


List of all members.

Detailed Description

A Content Stream is where the main action is in a PDF document. Most methods in this class corresponds to PDF operators. Note that some operators change the state of the PDF stream, and some operators are only legal in some states. This class does not (yet) enforce such restrictions.

Definition at line 306 of file pdf.h.

Public Types

typedef Entries::const_iterator const_iterator
typedef Entries::iterator iterator
typedef RefCountPtr< ContentPtr
typedef Entries::size_type size_type

Public Member Functions

const_iterator begin () const
iterator begin ()
void beginText ()
 Enter Text State.
std::ostream & data ()
void dec_refcount () const
const_iterator end () const
iterator end ()
void endText ()
 Leave Text State.
Object::Ptr get_entry (const std::string &name)
const Object::Ptr get_entry (const std::string &name) const
DocumentPtr getDocument ()
void inc_refcount () const
void moveto (float xpos, float ypos)
std::string rawdata () const
std::string registerXObj (Object::Ptr object)
void selectfont (const font::FontInfo &font)
Object::Ptr set_entry (const std::string &name, Object::Ptr object)
Object::Ptr set_entry_int (const std::string &name, int value)
Object::Ptr set_entry_name (const std::string &name, const std::string &value)
void setCharSpace (const float &w)
void setgray (float gray)
void setWordSpace (const float &w)
void show (const Glib::ustring &s)
size_type size () const
 Return the number of entries in this Dictionary.
void textRise (float rise)
void whitespace (float width)
void whitespace ()
std::ostream & write (std::ostream &out)

Static Public Member Functions

static Ptr create ()
static Ptr create (DocumentPtr document, int width, int height)
 Create a new Content that is a Form XObject.
static Ptr create (RefCountPtr< Page > page)
 Create a new Content bound to a specific page.

Protected Member Functions

 Content (DocumentPtr doc, ResourcesPtr res)

Private Member Functions

void commitText ()

Private Attributes

float cur_charspace
float cur_size
float cur_wordspace
DocumentPtr document_
float last_xpos
float last_ypos
ResourcesPtr resources
bool simple_font
std::ostringstream textbuf

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

Generated by  Doxygen 1.6.0   Back to index