Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPdf Namespace Reference

Classes

class  ByteStream
 
struct  Stroker
 

Enumerations

enum  PathFlags { ClipPath , FillPath , StrokePath , FillAndStrokePath }
 

Functions

QByteArray generatePath (const QPainterPath &path, const QTransform &matrix, PathFlags flags)
 
QByteArray generateMatrix (const QTransform &matrix)
 
QByteArray generateDashes (const QPen &pen)
 
QByteArray patternForBrush (const QBrush &b)
 
QByteArray ascii85Encode (const QByteArray &input)
 
const char * toHex (ushort u, char *buffer)
 
const char * toHex (uchar u, char *buffer)
 

Enumeration Type Documentation

◆ PathFlags

Enumerator
ClipPath 
FillPath 
StrokePath 
FillAndStrokePath 

Definition at line 78 of file qpdf_p.h.

Function Documentation

◆ ascii85Encode()

QByteArray QPdf::ascii85Encode ( const QByteArray input)

Definition at line 659 of file qpdf.cpp.

References base, i, out, output, QString::size(), and QByteArray::size().

+ Here is the call graph for this function:

◆ generateDashes()

QByteArray QPdf::generateDashes ( const QPen pen)

Definition at line 384 of file qpdf.cpp.

References QList< T >::at(), QPen::dashOffset(), QPen::dashPattern(), i, QList< T >::size(), and QPen::widthF().

Referenced by QPdfEngine::setPen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateMatrix()

QByteArray QPdf::generateMatrix ( const QTransform matrix)

Definition at line 370 of file qpdf.cpp.

Referenced by QPdfEnginePrivate::addBrushPattern(), QPdfEngine::drawImage(), QPdfEngine::drawPixmap(), QPdfEngine::drawRects(), QPdfEngine::drawTextItem(), QPdfEnginePrivate::newPage(), and QPdfEngine::setupGraphicsState().

+ Here is the caller graph for this function:

◆ generatePath()

QByteArray QPdf::generatePath ( const QPainterPath path,
const QTransform matrix,
PathFlags  flags 
)

Definition at line 308 of file qpdf.cpp.

References ClipPath, QPainterPath::CurveToDataElement, QPainterPath::CurveToElement, FillAndStrokePath, FillPath, i, QPainterPath::LineToElement, QPainterPath::MoveToElement, Q_ASSERT, qFatal, StrokePath, QPainterPath::Element::type, Qt::WindingFill, QPainterPath::Element::x, and QPainterPath::Element::y.

Referenced by QPdfEngine::drawPath(), and QPdfEngine::setupGraphicsState().

+ Here is the caller graph for this function:

◆ patternForBrush()

QByteArray QPdf::patternForBrush ( const QBrush b)

Definition at line 560 of file qpdf.cpp.

References Qt::DiagCrossPattern, and pattern_for_brush.

Referenced by QPdfEnginePrivate::addBrushPattern().

+ Here is the caller graph for this function:

◆ toHex() [1/2]

const char * QPdf::toHex ( uchar  u,
char *  buffer 
)

Definition at line 731 of file qpdf.cpp.

References hex, and i.

◆ toHex() [2/2]

const char * QPdf::toHex ( ushort  u,
char *  buffer 
)

Definition at line 715 of file qpdf.cpp.

References hex, and i.

Referenced by QFontSubset::createToUnicodeMap(), QPdfEnginePrivate::drawTextItem(), and QFontSubset::glyphName().

+ Here is the caller graph for this function: