Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpdf.cpp File Reference

(7f72a93e874f5e52612983ad3b764f07216bf62e)

#include "qpdf_p.h"
#include "qplatformdefs.h"
#include <private/qcmyk_p.h>
#include <private/qfont_p.h>
#include <private/qmath_p.h>
#include <private/qpainter_p.h>
#include <qbuffer.h>
#include <qcryptographichash.h>
#include <qdatetime.h>
#include <qdebug.h>
#include <qfile.h>
#include <qimagewriter.h>
#include <qnumeric.h>
#include <qtemporaryfile.h>
#include <quuid.h>
#include <zlib.h>
+ Include dependency graph for qpdf.cpp:

Go to the source code of this file.

Classes

struct  QGradientBound
 

Namespaces

namespace  QPdf
 

Macros

#define QT_PATH_ELEMENT(elm)
 

Functions

static void initResources ()
 
constexpr QPaintEngine::PaintEngineFeatures qt_pdf_decide_features ()
 
bool qt_isExtendedRadialGradient (const QBrush &brush)
 
static void removeTransparencyFromBrush (QBrush &brush)
 
const char * qt_real_to_string (qreal val, char *buf)
 
const char * qt_int_to_string (int val, char *buf)
 
static void moveToHook (qfixed x, qfixed y, void *data)
 
static void lineToHook (qfixed x, qfixed y, void *data)
 
static void cubicToHook (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey, void *data)
 
QPainterPath qt_regionToPath (const QRegion &region)
 
 Q_DECLARE_TYPEINFO (QGradientBound, Q_PRIMITIVE_TYPE)
 
static bool is_monochrome (const QList< QRgb > &colorTable)
 

Variables

static const bool do_compress = true
 
static const bool interpolateImages = false
 
static const char *const pattern_for_brush []
 

Macro Definition Documentation

◆ QT_PATH_ELEMENT

#define QT_PATH_ELEMENT ( elm)

Definition at line 301 of file qpdf.cpp.

Function Documentation

◆ cubicToHook()

static void cubicToHook ( qfixed c1x,
qfixed c1y,
qfixed c2x,
qfixed c2y,
qfixed ex,
qfixed ey,
void * data )
static

Definition at line 583 of file qpdf.cpp.

References QTransform::map(), and QPdf::Stroker::matrix.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setCubicToHook().

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

◆ initResources()

static void initResources ( )
static

Definition at line 39 of file qpdf.cpp.

References Q_INIT_RESOURCE.

Referenced by QCocoaIntegration::QCocoaIntegration(), QEglFSIntegration::QEglFSIntegration(), QPdfEnginePrivate::QPdfEnginePrivate(), QWindowsCursor::QWindowsCursor(), and QApplicationPrivate::init().

+ Here is the caller graph for this function:

◆ is_monochrome()

static bool is_monochrome ( const QList< QRgb > & colorTable)
inlinestatic

Definition at line 3013 of file qpdf.cpp.

References Qt::black, QColor::rgba(), and Qt::white.

Referenced by QPdfEnginePrivate::addImage().

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

◆ lineToHook()

static void lineToHook ( qfixed x,
qfixed y,
void * data )
static

Definition at line 575 of file qpdf.cpp.

References QTransform::map(), and QPdf::Stroker::matrix.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setLineToHook().

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

◆ moveToHook()

static void moveToHook ( qfixed x,
qfixed y,
void * data )
static

Definition at line 564 of file qpdf.cpp.

References QPdf::ByteStream::stream(), and QPdf::Stroker::stream.

Referenced by QPdf::Stroker::Stroker(), and QStrokerOps::setMoveToHook().

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

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QGradientBound ,
Q_PRIMITIVE_TYPE  )

◆ qt_int_to_string()

const char * qt_int_to_string ( int val,
char * buf )

Definition at line 152 of file qpdf.cpp.

References i, output, and ret.

Referenced by QPdf::ByteStream::operator<<().

+ Here is the caller graph for this function:

◆ qt_isExtendedRadialGradient()

bool qt_isExtendedRadialGradient ( const QBrush & brush)
extern

Definition at line 801 of file qbrush.cpp.

References qFuzzyIsNull(), Qt::RadialGradientPattern, QPointF::x(), and QPointF::y().

Referenced by QBrush::isOpaque(), removeTransparencyFromBrush(), and QPainterPrivate::updateEmulationSpecifier().

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

◆ qt_pdf_decide_features()

constexpr QPaintEngine::PaintEngineFeatures qt_pdf_decide_features ( )
constexpr

◆ qt_real_to_string()

const char * qt_real_to_string ( qreal val,
char * buf )

Definition at line 100 of file qpdf.cpp.

References i, output, qIsFinite(), and ret.

Referenced by QPdfEngine::drawHyperlink(), QPdf::ByteStream::operator<<(), and QPdf::ByteStream::operator<<().

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

◆ qt_regionToPath()

QPainterPath qt_regionToPath ( const QRegion & region)
extern

Definition at line 1007 of file qregion.cpp.

◆ removeTransparencyFromBrush()

static void removeTransparencyFromBrush ( QBrush & brush)
static

Definition at line 61 of file qpdf.cpp.

References Qt::black, Qt::ConicalGradientPattern, i, Qt::LinearGradientPattern, qt_isExtendedRadialGradient(), Qt::RadialGradientPattern, QList< T >::size(), Qt::SolidPattern, and Qt::TexturePattern.

Referenced by QPdfEngine::updateState().

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

Variable Documentation

◆ do_compress

const bool do_compress = true
static

Definition at line 32 of file qpdf.cpp.

◆ interpolateImages

const bool interpolateImages = false
static

Definition at line 37 of file qpdf.cpp.

◆ pattern_for_brush

const char* const pattern_for_brush[]
static

Definition at line 402 of file qpdf.cpp.

Referenced by QPdf::patternForBrush().