sd signature line: place shape on the correct page

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 25 June 2020 12:29 EDT

PDFDocument::Sign() had this hardcoded to always place the signature widget on the first page, add a way so that xmlsecurity/ can tell the pdf signing code to put it on an other page.

This way in case the user created the signature line shape on the Nth page, it'll end up on the Nth page of the PDF result as well, as expected.

Change-Id: I63decba98774151e9634ea924c2fed0f7814cb28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97045

022f6bb1f7ed sd signature line: place shape on the correct page
include/vcl/filter/pdfdocument.hxx | 4 +
vcl/CppunitTest_vcl_filter_ipdf.mk | 49 +++++++
vcl/Module_vcl.mk | 1 +
.../ipdf/data/add-visible-signature-last-page.pdf | 111 +++++++++++++++
vcl/qa/cppunit/filter/ipdf/ipdf.cxx | 149 +++++++++++++++++++++
vcl/source/filter/ipdf/pdfdocument.cxx | 22 ++-
xmlsecurity/source/helper/pdfsignaturehelper.cxx | 34 ++++-
7 files changed, 363 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share