From 9c00874e7786fa38e15e9a4ddf9767b63e88386d Mon Sep 17 00:00:00 2001 From: Tobias Hoffmann Date: Wed, 25 Jul 2012 03:01:57 +0200 Subject: added QPDFObjectHandle::replaceStreamData(std::string data). --- include/qpdf/QPDFObjectHandle.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 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 -- cgit v1.2.3-54-g00ecf