From 7712221f5340b8eb875d391967b2726e93285ab4 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 15 Aug 2023 16:29:31 +0200 Subject: sw: PDF/UA export: add /Placement/Block to Note PDF 1.7 defines Note as an ILSE (inline), but that is rather odd and definitely not how footnotes work in Writer. PAC 3 complains about "Possibly inappropriate use of a "Note" structure element" and "Possibly inappropriate use of a "P" structure element" which is rather opaque but experimenting shows the warnings disappear when the Note has a /Placement/Block attribute. PDF 2.0 (ISO-32000-2:2020 Annex M) even removes the Note ILSE and introduces FENote as a BLSE to replace it. Change-Id: I46ee32c88d4be495bf79549280e2fa68d7da091c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155722 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sw/source/core/text/EnhancedPDFExportHelper.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 9124522379c8..4473b89d25b4 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -585,6 +585,10 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType ) bWritingMode = true; break; + case vcl::PDFWriter::Note: + bPlacement = true; + break; + case vcl::PDFWriter::Table : bPlacement = bWritingMode = -- cgit