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 "convertchecker.h"
|
||||
#include "mimer.h"
|
||||
#include "seaprint_version.h"
|
||||
#include <QImage>
|
||||
#include <QMatrix>
|
||||
#include <QPainter>
|
||||
|
@ -447,6 +448,7 @@ try {
|
|||
tmpPdfFile.open();
|
||||
|
||||
QPdfWriter pdfWriter(tmpPdfFile.fileName());
|
||||
pdfWriter.setCreator("SeaPrint " SEAPRINT_VERSION);
|
||||
QPageSize pageSize(QSizeF {wh.first, wh.second}, QPageSize::Millimeter);
|
||||
pdfWriter.setPageSize(pageSize);
|
||||
pdfWriter.setResolution(resolution);
|
||||
|
|
Loading…
Reference in a new issue