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.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index e43dbe1b1cac..5f93906462a8 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -5206,6 +5206,10 @@ bool PDFWriterImpl::emitCatalog()
aWriter.startObject(rAttachedFile.mnObjectId);
aWriter.startDict();
aWriter.write("/Type", "/Filespec");
+ if (PDFWriter::PDFVersion::PDF_2_0 <= m_aContext.Version)
+ {
+ aWriter.write("/AFRelationship", "/Source");
+ }
aWriter.writeKeyAndUnicodeEncrypt("/F", rAttachedFile.maFilename, rAttachedFile.mnObjectId);
if (PDFWriter::PDFVersion::PDF_1_7 <= m_aContext.Version)
{