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 <lars@knoll.priv.no>
(cherry picked from commit 6a5e2c6f9b0418f9bb8f0ac1abe39ec157c381f4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Giuseppe D'Angelo 2024-12-04 01:07:10 +01:00 committed by Qt Cherry-pick Bot
parent 497cc1deb8
commit 14bd53687f

View File

@ -1783,7 +1783,7 @@ void QPdfEnginePrivate::writeInfo(const QDateTime &date)
write(formattedDate); write(formattedDate);
write("\n/Trapped /False\n" write("\n/Trapped /False\n"
"2\n" ">>\n"
"endobj\n"); "endobj\n");
} }