From f47558ca873a3f1e4a2431fc133f132c7f99fba2 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 11 Jul 2024 00:59:12 +0200 Subject: [PATCH] PDF: fix the value of the Trapped element in the XMP metadata XMP 8.2.1.1 says that a boolean shall be "False", not "false". Change-Id: Ifa4d1038fe481389e2c3914548382ee9c3c88e66 Reviewed-by: Albert Astals Cid (cherry picked from commit 1b80d03e0f1d2498c98c11f5b5dca8a6b1b29fd8) 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 992db03bbc2..680f30c852c 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1852,7 +1852,7 @@ int QPdfEnginePrivate::writeXmpDocumentMetaData(const QDateTime &date) w.writeStartElement(rdfNS, "Description"); w.writeAttribute(rdfNS, "about", ""); w.writeAttribute(pdfNS, "Producer", producer); - w.writeAttribute(pdfNS, "Trapped", "false"); + w.writeAttribute(pdfNS, "Trapped", "False"); w.writeEndElement(); // XMP