diff --git a/sources/scripting/liveserver.cpp b/sources/scripting/liveserver.cpp index 1939b61a0..1fbbba119 100644 --- a/sources/scripting/liveserver.cpp +++ b/sources/scripting/liveserver.cpp @@ -738,8 +738,11 @@ QJsonObject LiveServer::print(const QJsonObject &request) if (fi.exists()) return failure(QStringLiteral("%1 already exists; printing never replaces a file").arg(file)); } - QPrinter printer = file.isEmpty() ? QPrinter(info, QPrinter::HighResolution) - : QPrinter(QPrinter::HighResolution); + QPrinter printer = file.isEmpty() ? QPrinter(info) : QPrinter(); + //96 dpi, as the PDF export draws: symbols are replayed at the + //device's resolution, so at a printer's 600-1200 dpi they came out + //many times too big next to the wires (seen on a test print) + printer.setResolution(96); if (!file.isEmpty()) { printer.setOutputFormat(QPrinter::PdfFormat); printer.setOutputFileName(file);