diff options
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index c0cf79806e47..5e271ec2680c 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" ); |