aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTobias Hoffmann <thobi@worker>2012-07-25 03:01:57 +0200
committerTobias Hoffmann <thobi@worker>2012-07-25 03:02:46 +0200
commit9c00874e7786fa38e15e9a4ddf9767b63e88386d (patch)
tree2616a3bf3b21be29dab08224064c5015b6827830 /include
parentb04fb5cf5844852b4642bd486f14c08c78c16345 (diff)
downloadqpdf-9c00874e7786fa38e15e9a4ddf9767b63e88386d.tar.zst
added QPDFObjectHandle::replaceStreamData(std::string data).
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index a1819d99..2c24f481 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -363,6 +363,15 @@ class QPDFObjectHandle
QPDFObjectHandle const& filter,
QPDFObjectHandle const& decode_parms);
+ // Replace the stream's stream data with the given string.
+ // This method will create a copy of the data rather than using
+ // the user-provided buffer as in the PointerHolder<Buffer> version
+ // of replaceStreamData.
+ QPDF_DLL
+ void replaceStreamData(std::string const& data,
+ QPDFObjectHandle const& filter,
+ QPDFObjectHandle const& decode_parms);
+
// As above, replace this stream's stream data. Instead of
// directly providing a buffer with the stream data, call the
// given provider's provideStreamData method. See comments on the