Qt 4.8
Public Functions | Public Variables | List of all members
QPdfPage Class Reference

#include <qpdf_p.h>

Inheritance diagram for QPdfPage:
QPdf::ByteStream

Public Functions

 QPdfPage ()
 
void streamImage (int w, int h, int object)
 
- Public Functions inherited from QPdf::ByteStream
 ByteStream (bool fileBacking=false)
 
 ByteStream (QByteArray *ba, bool fileBacking=false)
 
void clear ()
 
ByteStreamoperator<< (char chr)
 
ByteStreamoperator<< (const char *str)
 
ByteStreamoperator<< (const QByteArray &str)
 
ByteStreamoperator<< (const ByteStream &src)
 
ByteStreamoperator<< (qreal val)
 
ByteStreamoperator<< (int val)
 
ByteStreamoperator<< (const QPointF &p)
 
QIODevicestream ()
 
 ~ByteStream ()
 

Public Variables

QVector< uintannotations
 
QVector< uintfonts
 
QVector< uintgraphicStates
 
QVector< uintimages
 
QSize pageSize
 
QVector< uintpatterns
 

Additional Inherited Members

- Static Public Functions inherited from QPdf::ByteStream
static int chunkSize ()
 
static int maxMemorySize ()
 
- Protected Functions inherited from QPdf::ByteStream
void constructor_helper (QIODevice *dev)
 
void constructor_helper (QByteArray *ba)
 

Detailed Description

Definition at line 162 of file qpdf_p.h.

Constructors and Destructors

◆ QPdfPage()

QPdfPage::QPdfPage ( )

Definition at line 86 of file qprintengine_pdf.cpp.

87  : QPdf::ByteStream(true) // Enable file backing
88 {
89 }

Functions

◆ streamImage()

void QPdfPage::streamImage ( int  w,
int  h,
int  object 
)

Definition at line 91 of file qprintengine_pdf.cpp.

92 {
93  *this << w << "0 0 " << -h << "0 " << h << "cm /Im" << object << " Do\n";
94  if (!images.contains(object))
95  images.append(object);
96 }
QVector< uint > images
Definition: qpdf_p.h:167
void append(const T &t)
Inserts value at the end of the vector.
Definition: qvector.h:573
bool contains(const T &t) const
Returns true if the vector contains an occurrence of value; otherwise returns false.
Definition: qvector.h:731

Properties

◆ annotations

QVector<uint> QPdfPage::annotations

Definition at line 171 of file qpdf_p.h.

Referenced by QPdfEnginePrivate::drawTextItem(), and QPdfEnginePrivate::writePage().

◆ fonts

QVector<uint> QPdfPage::fonts

◆ graphicStates

QVector<uint> QPdfPage::graphicStates

◆ images

QVector<uint> QPdfPage::images

Definition at line 167 of file qpdf_p.h.

Referenced by streamImage(), and QPdfEnginePrivate::writePage().

◆ pageSize

QSize QPdfPage::pageSize

Definition at line 175 of file qpdf_p.h.

Referenced by QPdfEnginePrivate::newPage(), and QPdfEnginePrivate::writePage().

◆ patterns

QVector<uint> QPdfPage::patterns

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