summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index ec3d5ca549b0..faf795fa60c7 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6232,14 +6232,21 @@ bool PDFWriterImpl::emitTrailer()
aLine.append( "> ]\n" );
}
- if( !aDocChecksum.isEmpty() )
+ // Writes the /DocChecksum - hash off the PDF stream
+ // This entry is not defined in the standard, so don't write it if we
+ // are using PDF/UA or PDF/A as the compliance checkers will complain.
+ // Actually we shouldn't write it at all...
+ if (!aDocChecksum.isEmpty() && !m_bIsPDF_UA && m_nPDFA_Version == 0)
{
aLine.append( "/DocChecksum /" );
aLine.append( aDocChecksum );
aLine.append( "\n" );
}
- if (!m_aDocumentAttachedFiles.empty())
+ // Writes the /AdditionalStreams - writes the embedded / attached files into the PDF
+ // This entry is not defined in the standard, so don't write it if we
+ // are using PDF/UA or PDF/A as the compliance checkers will complain.
+ if (!m_aDocumentAttachedFiles.empty() && !m_bIsPDF_UA && m_nPDFA_Version == 0)
{
aLine.append( "/AdditionalStreams [" );
for (auto const& rAttachedFile : m_aDocumentAttachedFiles)