diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-16 14:31:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-16 15:55:38 +0200 |
commit | 058c21ac4a552ee6f6ca2f67c0d134a819228d53 (patch) | |
tree | 8bf2a5cc1d928005ec71ee3a07a1b7395096ca7e /xmlsecurity/source | |
parent | ea45b306d824938d2dc01e6988be210c3a042efe (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.
Change-Id: Id042c95af4a867d3997d6f7742a18659b8925c12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96455
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/helper/pdfsignaturehelper.cxx | 4 |
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)) { |