[Libreoffice-commits] .: Branch 'feature/pdf-signing' - vcl/source

Gökcen Eraslan gokcen at kemper.freedesktop.org
Sat Jun 23 05:43:31 PDT 2012


 vcl/source/gdi/pdfwriter_impl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 77d41a25fe7afc31045ea6a39cb7bfb6c74d85fa
Author: Gökçen Eraslan <gokcen.eraslan at gmail.com>
Date:   Sat Jun 23 15:43:14 2012 +0300

    /NeedAppearances must not be used if PDF is signed.
    
    Change-Id: Ie9d98d555e807de4d20a122a005e75106e039305

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index c0cf798..5e271ec 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6048,7 +6048,8 @@ bool PDFWriterImpl::emitCatalog()
         aLine.append( "/DR " );
         aLine.append( getResourceDictObj() );
         aLine.append( " 0 R" );
-        if( m_bIsPDF_A1 )
+        // /NeedAppearances must not be used if PDF is signed
+        if( m_bIsPDF_A1 || ( m_nSignatureObject != -1 ) )
             aLine.append( ">>\n" );
         else
             aLine.append( "/NeedAppearances true>>\n" );


More information about the Libreoffice-commits mailing list