Set creator in plaintext PDF

This commit is contained in:
Anton Thomasson 2021-06-19 16:34:17 +02:00
parent c8bf17553b
commit 137eb965bf

View file

@ -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);