diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-21 14:33:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-21 13:18:00 +0000 |
commit | 834abca71b4899a3ef115df30f68ad2202019247 (patch) | |
tree | eece8eca66dd66e1a26c60526d24efa6d4649e27 /xmlsecurity/inc | |
parent | 8b5f8c26f007c8e67bc46b1b09340cae660d0b8b (diff) |
xmlsecurity PDF export: fix missing /Prev key in the trailer dictionary
"In addition, the added trailer dictionary shall contain a Prev entry
giving the location of the previous cross-reference section."
(ISO-32000-1, section 7.5.6). Add it, even if it seems Adobe Acrobat can
live with not writing it.
Change-Id: I1f53e75ebe7dba4b45b3cf1908b2d3b031ef6b02
Reviewed-on: https://gerrit.libreoffice.org/30133
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/pdfio/pdfdocument.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlsecurity/inc/pdfio/pdfdocument.hxx b/xmlsecurity/inc/pdfio/pdfdocument.hxx index bb132a6959ff..816904f9f61f 100644 --- a/xmlsecurity/inc/pdfio/pdfdocument.hxx +++ b/xmlsecurity/inc/pdfio/pdfdocument.hxx @@ -44,6 +44,8 @@ class XMLSECURITY_DLLPUBLIC PDFDocument std::vector< std::unique_ptr<PDFElement> > m_aElements; // List of object offsets we know. std::vector<size_t> m_aXRef; + /// List of xref offsets we know. + std::vector<size_t> m_aStartXRefs; PDFTrailerElement* m_pTrailer; /// All editing takes place in this buffer, if it happens. SvMemoryStream m_aEditBuffer; |