9#include <QtCore/private/qobject_p.h>
10#include "private/qpdf_p.h"
11#include <QtCore/qfile.h>
103 d->engine->setOutputFilename(filename);
115 d->engine->d_func()->outDevice =
device;
137 if (
d->pdfVersion == version)
140 d->pdfVersion = version;
152 return d->pdfVersion;
161 return d->engine->d_func()->title;
170 d->engine->d_func()->title =
title;
179 return d->engine->d_func()->creator;
188 d->engine->d_func()->creator =
creator;
230 return d->engine->resolution();
246 d->engine->setDocumentXmpMetadata(xmpMetadata);
261 return d->engine->documentXmpMetadata();
285 return d->engine->metric(
id);
295 return d->engine->newPage();
300#include "moc_qpdfwriter.cpp"
IOBluetoothDevice * device
\inmodule QtCore \reentrant
bool isEquivalentTo(const QPageLayout &other) const
Returns true if this page layout is equivalent to the other page layout, i.e.
Unit units() const
Returns the units the page layout is currently defined in.
Unit
This enum type is used to specify the measurement unit for page layout and margins.
QMarginsF margins() const
Returns the margins of the page layout using the currently set units.
Orientation orientation() const
Returns the page orientation of the page layout.
Orientation
This enum type defines the page orientation.
QPageSize pageSize() const
Returns the page size of the page layout.
bool isEquivalentTo(const QPageSize &other) const
Returns true if this page is equivalent to the other page, i.e.
QPagedPaintDevicePrivate * d
PdfVersion
The PdfVersion enum describes the version of the PDF file that is produced by QPrinter or QPdfWriter.
QPageLayout pageLayout() const
void setPageOrientation(QPageLayout::Orientation orientation)
void setPageMargins(const QMarginsF &margins, QPageLayout::Unit units=QPageLayout::Point)
void setPageLayout(const QPageLayout &pageLayout)
void setPageSize(const QPageSize &pageSize)
bool setPageSize(const QPageSize &pageSize) override
bool setPageLayout(const QPageLayout &newPageLayout) override
QPdfPagedPaintDevicePrivate(QPdfWriterPrivate *d)
~QPdfPagedPaintDevicePrivate()
QPageLayout pageLayout() const override
bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units) override
bool setPageOrientation(QPageLayout::Orientation orientation) override
QPdfWriter::PdfVersion pdfVersion
void addFileAttachment(const QString &fileName, const QByteArray &data, const QString &mimeType=QString())
QString title() const
Returns the title of the document.
~QPdfWriter()
Destroys the pdf writer.
QPaintEngine * paintEngine() const override
\reimp
void setDocumentXmpMetadata(const QByteArray &xmpMetadata)
int metric(PaintDeviceMetric id) const override
void setCreator(const QString &creator)
Sets the creator of the document to creator.
bool newPage() override
\reimp
QPdfWriter(const QString &filename)
Constructs a PDF writer that will write the pdf to filename.
PdfVersion pdfVersion() const
QByteArray documentXmpMetadata() const
void setTitle(const QString &title)
Sets the title of the document being created to title.
void setPdfVersion(PdfVersion version)
QString creator() const
Returns the creator of the document.
void setResolution(int resolution)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QItemEditorCreatorBase * creator