From efbb21673c59cfbf6a74de6866a59cb2dbb8e59f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 14 Feb 2021 14:04:40 -0500 Subject: Add functional versions of QPDFObjectHandle::replaceStreamData Also fix a bug in checking consistency of length for stream data providers. Length should not be checked or recorded if the provider says it failed to generate the data. --- manual/qpdf-manual.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manual') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 58012e30..ae085d6e 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -5211,6 +5211,17 @@ print "\n"; contents of a file through a pipeline as binary data. + + + Add new versions of + QPDFObjectHandle::replaceStreamData + that take std::function objects for + cases when you need something between a static string and a + full-fledged StreamDataProvider. Using this with + QUtil::file_provider is a very easy way to create a stream + from the contents of a file. + + Add option to QUtil::double_to_string -- cgit v1.2.3-54-g00ecf