[Libreoffice-commits] core.git: Branch 'feature/cib_contract139' - vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 6 17:08:53 UTC 2019


Rebased ref, commits from common ancestor:
commit 9d5eceaaa5705bddd687db8b4e7aef91591dd5fc
Author:     Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Wed Mar 6 17:22:21 2019 +0100
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Wed Mar 6 18:07:39 2019 +0100

    Tentative fix of tagged PDF export of artifacts
    
    quote PDF standard, chapter 14.8.2.2.2:
    " ... to aid in text reflow, artifacts should be defined with property
    lists whenever possible."
    
    So instead of 'Artifact BMC ... EMC', we export
    'Artifact BDC propertyList ... EMC' where property list is empty
    
    This is also how an example at
    https://www.w3.org/WAI/WCAG20/Techniques/working-examples/PDF4/decorative-image.pdf
    implements things
    
    Change-Id: I06e9a9119dd28ee80136393528fdd59d75f16951

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index acec33b4ec5c..f52893c2b237 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -10750,7 +10750,7 @@ void PDFWriterImpl::beginStructureElementMCSeq()
              )
     {
         OStringBuffer aLine( 128 );
-        aLine.append( "/Artifact BMC\n" );
+        aLine.append( "/Artifact <<>>BDC\n" );
         writeBuffer( aLine.getStr(), aLine.getLength() );
         // mark element MC sequence as open
         m_aStructure[ m_nCurrentStructElement ].m_bOpenMCSeq = true;


More information about the Libreoffice-commits mailing list