Set creator in plaintext PDF
This commit is contained in:
parent
c8bf17553b
commit
137eb965bf
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include "papersizes.h"
|
#include "papersizes.h"
|
||||||
#include "convertchecker.h"
|
#include "convertchecker.h"
|
||||||
#include "mimer.h"
|
#include "mimer.h"
|
||||||
|
#include "seaprint_version.h"
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QMatrix>
|
#include <QMatrix>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
@ -447,6 +448,7 @@ try {
|
||||||
tmpPdfFile.open();
|
tmpPdfFile.open();
|
||||||
|
|
||||||
QPdfWriter pdfWriter(tmpPdfFile.fileName());
|
QPdfWriter pdfWriter(tmpPdfFile.fileName());
|
||||||
|
pdfWriter.setCreator("SeaPrint " SEAPRINT_VERSION);
|
||||||
QPageSize pageSize(QSizeF {wh.first, wh.second}, QPageSize::Millimeter);
|
QPageSize pageSize(QSizeF {wh.first, wh.second}, QPageSize::Millimeter);
|
||||||
pdfWriter.setPageSize(pageSize);
|
pdfWriter.setPageSize(pageSize);
|
||||||
pdfWriter.setResolution(resolution);
|
pdfWriter.setResolution(resolution);
|
||||||
|
|
Loading…
Reference in a new issue