sw/source/core/text/EnhancedPDFExportHelper.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 7712221f5340b8eb875d391967b2726e93285ab4
Author:     Michael Stahl <[email protected]>
AuthorDate: Tue Aug 15 16:29:31 2023 +0200
Commit:     Michael Stahl <[email protected]>
CommitDate: Tue Aug 15 21:25:59 2023 +0200

    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 <[email protected]>

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 =

Reply via email to