From 14bd53687faaa5ff26774be2bc19eb0270c0853a Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 4 Dec 2024 01:07:10 +0100 Subject: [PATCH] QPdf: fix generation of the document information dictionary The dictionary was accidentally not closed by `>>` due to a typo, which made the PDF invalid. Change-Id: Ibb8ab05cf291070d48aa067d550b5696f636e47c Pick-to: 6.5 Reviewed-by: Lars Knoll (cherry picked from commit 6a5e2c6f9b0418f9bb8f0ac1abe39ec157c381f4) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qpdf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index 6028bf02388..47339cb4bf0 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1783,7 +1783,7 @@ void QPdfEnginePrivate::writeInfo(const QDateTime &date) write(formattedDate); write("\n/Trapped /False\n" - "2\n" + ">>\n" "endobj\n"); }