diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-15 16:29:31 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-15 21:25:59 +0200 |
commit | 7712221f5340b8eb875d391967b2726e93285ab4 (patch) | |
tree | 1308e824db47e05a5fe06f4c75464bb5295aa253 | |
parent | 9d5a7d9257db78eb3f4d77c39eae1affe877ea6b (diff) |
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 <michael.stahl@allotropia.de>
-rw-r--r-- | sw/source/core/text/EnhancedPDFExportHelper.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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 = |