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. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index b9f44077..7b1db1f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2021-02-14 Jay Berkenbilt + + * 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. + 2021-02-12 Jay Berkenbilt * Move formerly internal QPDFMatrix class to the public API. This -- cgit v1.2.3-54-g00ecf