summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-10-20 13:44:03 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-10-20 13:44:26 +0200
commite2b6ab0bb25deb9feb4f01c26bacf1c482329c62 (patch)
tree38433ba2ae83f7703a5b226dedccfb060d36b07d /sfx2
parent77e89962a2518962284c76da4d3339a9cd7b4ccb (diff)
xmlsecurity: add initial PDF sign UI
An unsigned PDF can be signed now, but the stream still gets truncated on closing the dialog. Change-Id: I12dd50bf577cd23b3355f6c6d03e71a9c0dbcfab
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index e41f7161838b..2f0455c984ac 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3606,7 +3606,7 @@ bool SfxMedium::SignContents_Impl( bool bScriptingContent, const OUString& aODFV
else
{
// Something not based: e.g. PDF.
- SvStream* pStream = utl::UcbStreamHelper::CreateStream(GetName(), StreamMode::READ);
+ SvStream* pStream = utl::UcbStreamHelper::CreateStream(GetName(), StreamMode::READ | StreamMode::WRITE);
uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream));
if (xSigner->signDocumentContent(uno::Reference<embed::XStorage>(), xStream))
bChanges = true;