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 /vcl | |
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 'vcl')
-rw-r--r-- | vcl/source/filter/ipdf/pdfdocument.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx index 73d7f452688d..316b8c74d169 100644 --- a/vcl/source/filter/ipdf/pdfdocument.cxx +++ b/vcl/source/filter/ipdf/pdfdocument.cxx @@ -151,6 +151,11 @@ bool PDFDocument::RemoveSignature(size_t nPosition) return m_aEditBuffer.good(); } +void PDFDocument::SetSignatureLine(const std::vector<sal_Int8>& rSignatureLine) +{ + m_aSignatureLine = rSignatureLine; +} + sal_uInt32 PDFDocument::GetNextSignature() { sal_uInt32 nRet = 0; @@ -233,6 +238,8 @@ sal_Int32 PDFDocument::WriteSignatureObject(const OUString& rDescription, bool b sal_Int32 PDFDocument::WriteAppearanceObject() { + m_aSignatureLine.clear(); + // Write appearance object. sal_Int32 nAppearanceId = m_aXRef.size(); XRefEntry aAppearanceEntry; |