From 058c21ac4a552ee6f6ca2f67c0d134a819228d53 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 16 Jun 2020 14:31:55 +0200 Subject: sd signature line: access the pdf shape from the appearance writer PDFDocument::WriteAppearanceObject() is where we can turn the pdf data (containing a single shape only) into a form XObject, later. Change-Id: Id042c95af4a867d3997d6f7742a18659b8925c12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96455 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- xmlsecurity/source/helper/pdfsignaturehelper.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/helper/pdfsignaturehelper.cxx b/xmlsecurity/source/helper/pdfsignaturehelper.cxx index 614d8e694e07..beb5b7e800bb 100644 --- a/xmlsecurity/source/helper/pdfsignaturehelper.cxx +++ b/xmlsecurity/source/helper/pdfsignaturehelper.cxx @@ -202,6 +202,10 @@ bool PDFSignatureHelper::Sign(const uno::Reference& xInputStre std::vector aSignatureLineShape; GetSignatureLineShape(aSignatureLineShape); + if (!aSignatureLineShape.empty()) + { + aDocument.SetSignatureLine(aSignatureLineShape); + } if (!aDocument.Sign(m_xCertificate, m_aDescription, bAdES)) { -- cgit