vcl: add initial CppunitTest_vcl_pdfexport

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 24 February 2017 10:49 EST

Invoke the PDF export filter and then use the PDF tokenizer from xmlsecurity to assert the contents of created PDF file. The testcase fails with commit 6db0f1feb1d9931d2726dd11a889c58815710ce0 (tdf#106059 PDF export: create a reference XObject for PDF images, 2017-02-22) reverted.

Change-Id: I90526fef41d9560ae447f586df766bc50a491c43 Reviewed-on: https://gerrit.libreoffice.org/34609

58eac11 vcl: add initial CppunitTest_vcl_pdfexport
.../xmlsecurity}/pdfio/pdfdocument.hxx | 38 +++++++-
.../xmlsecurity}/xmlsecuritydllapi.h | 6 +-
vcl/CppunitTest_vcl_pdfexport.mk | 42 +++++++++
vcl/Module_vcl.mk | 1 +
vcl/qa/cppunit/pdfexport/data/tdf106059.odt | Bin 0 -> 13585 bytes
vcl/qa/cppunit/pdfexport/pdfexport.cxx | 103 +++++++++++++++++++++
xmlsecurity/inc/documentsignaturehelper.hxx | 2 +-
xmlsecurity/inc/documentsignaturemanager.hxx | 2 +-
xmlsecurity/inc/pdfsignaturehelper.hxx | 2 +-
xmlsecurity/inc/xmlsignaturehelper.hxx | 2 +-
xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 2 +-
xmlsecurity/source/helper/pdfsignaturehelper.cxx | 2 +-
xmlsecurity/source/pdfio/pdfdocument.cxx | 41 +++-----
xmlsecurity/workben/pdfverify.cxx | 4 +-
14 files changed, 206 insertions(+), 41 deletions(-)

Upstream: cgit.freedesktop.org


  • Share