summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-16 14:31:55 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-29 09:07:44 +0200
commit0a3b7e5b878576daa61fbd5c075df1ede35773ed (patch)
treea1ccd3d64f9bbdecb0e156993bd30eba037e380d /xmlsecurity
parent663976ab9aa363c09475595e328bb7061152c947 (diff)
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. (cherry picked from commit 058c21ac4a552ee6f6ca2f67c0d134a819228d53) Change-Id: Id042c95af4a867d3997d6f7742a18659b8925c12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97243 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/pdfsignaturehelper.cxx4
1 files changed, 4 insertions, 0 deletions
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<io::XInputStream>& xInputStre
std::vector<sal_Int8> aSignatureLineShape;
GetSignatureLineShape(aSignatureLineShape);
+ if (!aSignatureLineShape.empty())
+ {
+ aDocument.SetSignatureLine(aSignatureLineShape);
+ }
if (!aDocument.Sign(m_xCertificate, m_aDescription, bAdES))
{