vcl: move in PDF tokenizer from xmlsecurity

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 22 March 2017 04:03 EDT

The PDF code in xmlsecurity served two purposes:

- a generic PDF tokenizer- signature verification

The first purpose is useful to have in VCL, so the PDF export code can use it as well when it comes to PDF image handling.

This commit just moves most of the PDF code to VCL, it does not touch the PDF export code yet. With this, also the somewhat odd xmlsecurity dependency of CppunitTest_vcl_pdfexport can be removed as well.

Change-Id: I6fe8294ed5c4aa4d79f4b2ddef80a4d1c9d566cc Reviewed-on: https://gerrit.libreoffice.org/35513

7415b71 vcl: move in PDF tokenizer from xmlsecurity
include/vcl/filter/pdfdocument.hxx | 355 ++
include/xmlsecurity/pdfio/pdfdocument.hxx | 294 +-
vcl/CppunitTest_vcl_pdfexport.mk | 2 +-
vcl/Library_vcl.mk | 1 +
vcl/qa/cppunit/pdfexport/pdfexport.cxx | 48 +-
vcl/source/filter/ipdf/pdfdocument.cxx | 2899 +++++++++++++++
xmlsecurity/CppunitTest_xmlsecurity_pdfsigning.mk | 1 +
xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 18 +-
xmlsecurity/source/helper/pdfsignaturehelper.cxx | 8 +-
xmlsecurity/source/pdfio/pdfdocument.cxx | 4046 +++------------------
xmlsecurity/workben/pdfverify.cxx | 6 +-
11 files changed, 3877 insertions(+), 3801 deletions(-)

Upstream: cgit.freedesktop.org


  • Share