![]() |
Qt 6.x
The Qt SDK
|
#include <qpdf_p.h>
Public Attributes | |
int | currentObject |
QPdfPage * | currentPage |
QPdf::Stroker | stroker |
QPointF | brushOrigin |
QBrush | brush |
QPen | pen |
QList< QPainterPath > | clips |
bool | clipEnabled |
bool | allClipped |
bool | hasPen |
bool | hasBrush |
bool | simplePen |
bool | needsTransform |
qreal | opacity |
QPdfEngine::PdfVersion | pdfVersion |
QHash< QFontEngine::FaceId, QFontSubset * > | fonts |
QPaintDevice * | pdev |
QIODevice * | outDevice |
bool | ownsDevice |
QString | outputFileName |
QString | title |
QString | creator |
bool | embedFonts |
int | resolution |
bool | grayscale |
QPageLayout | m_pageLayout |
![]() | |
QPaintDevice * | pdev |
QPaintEngine * | q_ptr |
QRegion | baseSystemClip |
QRegion | systemClip |
QRect | systemRect |
QRegion | systemViewport |
QTransform | systemTransform |
QPaintDevice * | currentClipDevice |
uint | hasSystemTransform: 1 |
uint | hasSystemViewport: 1 |
Additional Inherited Members | |
![]() | |
static QPaintEnginePrivate * | get (QPaintEngine *paintEngine) |
QPdfEnginePrivate::QPdfEnginePrivate | ( | ) |
Definition at line 1454 of file qpdf.cpp.
References currentObject, currentPage, initResources(), resolution, QPdf::Stroker::stream, and stroker.
QPdfEnginePrivate::~QPdfEnginePrivate | ( | ) |
Definition at line 1560 of file qpdf.cpp.
References currentPage, fonts, and qDeleteAll().
int QPdfEnginePrivate::addBrushPattern | ( | const QTransform & | matrix, |
bool * | specifyColor, | ||
int * | gStateObject | ||
) |
Definition at line 2746 of file qpdf.cpp.
References addConstantAlphaObject(), addImage(), QColor::alpha(), QList< T >::append(), brushOrigin, QPen::color(), currentPage, Qt::Dense1Pattern, Qt::DiagCrossPattern, QImage::Format_Mono, QImage::Format_MonoLSB, QPdf::generateMatrix(), Qt::LinearGradientPattern, QPainter::LosslessImageRendering, QPainter::NonCosmeticBrushPatterns, opacity, pageMatrix(), QPdf::patternForBrush(), QPdfPage::patterns, pen, qRound(), Qt::RadialGradientPattern, str, Qt::TexturePattern, QPointF::x(), and QPointF::y().
int QPdfEnginePrivate::addConstantAlphaObject | ( | int | brushAlpha, |
int | penAlpha = 255 |
||
) |
Definition at line 2725 of file qpdf.cpp.
References QList< T >::append(), QByteArray::constData(), currentPage, QPdfPage::graphicStates, QListSpecialMethodsBase< T >::indexOf(), QHash< Key, T >::insert(), and QHash< Key, T >::value().
Referenced by addBrushPattern().
int QPdfEnginePrivate::addImage | ( | const QImage & | img, |
bool * | bitmap, | ||
bool | lossless, | ||
qint64 | serial_no | ||
) |
Adds an image to the pdf and return the pdf-object id.
Returns -1 if adding the image failed.
Definition at line 2848 of file qpdf.cpp.
References QByteArray::constData(), contains(), d, QByteArray::data(), QImage::fill(), QImage::Format_ARGB32, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB32, grayscale, hasAlpha(), imageData, QHash< Key, T >::insert(), is_monochrome(), pdfVersion, qAlpha(), qBlue(), qGray(), qGreen(), qRed(), QRgb, QByteArray::resize(), rgb, QImageWriter::setQuality(), QImageWriter::supportedImageFormats(), QHash< Key, T >::value(), QPdfEngine::Version_A1b, Qt::white, and QImageWriter::write().
Referenced by addBrushPattern().
void QPdfEnginePrivate::drawTextItem | ( | const QPointF & | p, |
const QTextItemInt & | ti | ||
) |
Definition at line 2990 of file qpdf.cpp.
References QTextFormat::AnchorHref, QTextCharFormat::anchorHref(), QTextFormat::AnchorName, QTextCharFormat::anchorNames(), QPdfPage::annotations, QList< T >::append(), QTextItemInt::ascent, QTextItemInt::charFormat, QTextItemInt::chars, QByteArray::constData(), QListSpecialMethodsBase< T >::contains(), currentPage, QTextItemInt::descent, embedFonts, QFontEngine::faceId(), QFontEngine::FaceId::filename, QTextItemInt::flags, font, QFontEngine::fontDef, QTextItemInt::fontEngine, QPdfPage::fonts, fonts, QTransform::fromTranslate(), QFontEngine::fsType, QFontEngine::getGlyphPositions(), QTextItemInt::glyphs, QTextFormat::hasProperty(), i, QHash< Key, T >::insert(), QByteArray::isEmpty(), QList< T >::last(), QFontEngine::lineThickness(), QTextItemInt::logClusters, QTransform::map(), QPdf::Stroker::matrix, QTextItemInt::num_chars, pageMatrix(), pdfVersion, QFontDef::pixelSize, pos, positions, Q_ASSERT, requestObject(), QByteArray::setNum(), QVLABaseBase::size(), QString::sliced(), QString::startsWith(), QFontDef::stretch, stroker, QFontEngine::synthesized(), QFontEngine::SynthesizedBold, QFontEngine::SynthesizedItalic, QFontEngine::SynthesizedStretch, QPdf::toHex(), QString::toLatin1(), QFixed::toReal(), QChar::unicode(), QHash< Key, T >::value(), QPdfEngine::Version_A1b, and QTextItemInt::width.
void QPdfEnginePrivate::newPage | ( | ) |
Definition at line 3183 of file qpdf.cpp.
References QList< T >::append(), currentPage, QPageLayout::fullRectPoints(), QPdf::generateMatrix(), QSize::isEmpty(), m_pageLayout, pageMatrix(), QPdfPage::pageSize, requestObject(), QRect::size(), QPdf::Stroker::stream, and stroker.
QTransform QPdfEnginePrivate::pageMatrix | ( | ) | const |
Definition at line 3171 of file qpdf.cpp.
References QPageLayout::FullPageMode, QPageLayout::fullRectPoints(), QRect::height(), m_pageLayout, QPageLayout::mode(), QPageLayout::paintRectPixels(), resolution, and QTransform::translate().
Referenced by addBrushPattern(), drawTextItem(), and newPage().
|
inline |
Definition at line 211 of file qpdf_p.h.
Referenced by drawTextItem(), newPage(), and writeHeader().
void QPdfEnginePrivate::writeHeader | ( | ) |
Definition at line 1567 of file qpdf.cpp.
References QByteArray::isEmpty(), pdfVersion, requestObject(), and QPdfEngine::Version_A1b.
void QPdfEnginePrivate::writeTail | ( | ) |
Definition at line 2135 of file qpdf.cpp.
References QList< T >::constLast(), QUuid::createUuid(), QCryptographicHash::hash(), i, QCryptographicHash::Md5, pdfVersion, QList< T >::size(), QByteArray::toHex(), QString::toLatin1(), QUuid::toString(), and QPdfEngine::Version_A1b.
QPointF QPdfEnginePrivate::brushOrigin |
Definition at line 231 of file qpdf_p.h.
Referenced by addBrushPattern().
QList<QPainterPath> QPdfEnginePrivate::clips |
int QPdfEnginePrivate::currentObject |
Definition at line 226 of file qpdf_p.h.
Referenced by QPdfEnginePrivate().
QPdfPage* QPdfEnginePrivate::currentPage |
Definition at line 228 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), ~QPdfEnginePrivate(), addBrushPattern(), addConstantAlphaObject(), drawTextItem(), and newPage().
bool QPdfEnginePrivate::embedFonts |
Definition at line 256 of file qpdf_p.h.
Referenced by drawTextItem().
QHash<QFontEngine::FaceId, QFontSubset *> QPdfEnginePrivate::fonts |
Definition at line 244 of file qpdf_p.h.
Referenced by ~QPdfEnginePrivate(), and drawTextItem().
bool QPdfEnginePrivate::grayscale |
Definition at line 258 of file qpdf_p.h.
Referenced by addImage().
QPageLayout QPdfEnginePrivate::m_pageLayout |
Definition at line 261 of file qpdf_p.h.
Referenced by QCupsPrintEnginePrivate::closePrintDevice(), newPage(), and pageMatrix().
qreal QPdfEnginePrivate::opacity |
Definition at line 241 of file qpdf_p.h.
Referenced by addBrushPattern().
QIODevice* QPdfEnginePrivate::outDevice |
Definition at line 249 of file qpdf_p.h.
Referenced by QPdfPrintEnginePrivate::closePrintDevice(), QPdfPrintEnginePrivate::openPrintDevice(), and QCupsPrintEnginePrivate::openPrintDevice().
QString QPdfEnginePrivate::outputFileName |
Definition at line 253 of file qpdf_p.h.
Referenced by QPdfPrintEnginePrivate::openPrintDevice(), and QCupsPrintEnginePrivate::openPrintDevice().
QPaintDevice* QPdfEnginePrivate::pdev |
QPdfEngine::PdfVersion QPdfEnginePrivate::pdfVersion |
Definition at line 242 of file qpdf_p.h.
Referenced by addImage(), drawTextItem(), writeHeader(), and writeTail().
QPen QPdfEnginePrivate::pen |
Definition at line 233 of file qpdf_p.h.
Referenced by addBrushPattern().
int QPdfEnginePrivate::resolution |
Definition at line 257 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), QPdfPrintEnginePrivate::QPdfPrintEnginePrivate(), and pageMatrix().
QPdf::Stroker QPdfEnginePrivate::stroker |
Definition at line 229 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), drawTextItem(), and newPage().
QString QPdfEnginePrivate::title |
Definition at line 254 of file qpdf_p.h.
Referenced by QCupsPrintEnginePrivate::closePrintDevice().