diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-15 16:29:31 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-08-22 20:59:03 +0200 |
commit | dd53384cfea6ad6e7995679976bd507b567afe2f (patch) | |
tree | 38bcf592092eb005cf771e4f768530d5c8af7033 | |
parent | 346cedd597bee1058bb8ebd0681faad9d8c2b203 (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>
(cherry picked from commit 7712221f5340b8eb875d391967b2726e93285ab4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155701
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-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 = |