aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-01-02 15:47:27 +0100
committerJay Berkenbilt <ejb@ql.org>2021-01-02 20:08:17 +0100
commit98da4fd83527f47a28132ff4a120bc043d9e58f6 (patch)
tree350e2b436b6ac7d43b72ac16fa29c03ee0463a3e /include
parentbedf35d6a55a9092485d56002b50bc9003ce7931 (diff)
downloadqpdf-98da4fd83527f47a28132ff4a120bc043d9e58f6.tar.zst
Externalize inline images now includes form XObjects
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFPageObjectHelper.hh11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh
index 1152a7a5..ccf56630 100644
--- a/include/qpdf/QPDFPageObjectHelper.hh
+++ b/include/qpdf/QPDFPageObjectHelper.hh
@@ -123,8 +123,15 @@ class QPDFPageObjectHelper: public QPDFObjectHelper
QPDF_DLL
std::map<std::string, QPDFObjectHandle> getFormXObjects();
- // Convert each inline image to an external (normal) image if the
- // size is at least the specified number of bytes.
+ // Converts each inline image to an external (normal) image if the
+ // size is at least the specified number of bytes. This method
+ // works with pages or form XObjects. By default, it recursively
+ // processes nested form XObjects. Pass true as shallow to avoid
+ // this behavior. Prior to qpdf 10.1, form XObjects were ignored,
+ // but this was considered a bug.
+ QPDF_DLL
+ void externalizeInlineImages(size_t min_size, bool shallow);
+ // ABI: make shallow optional (default false) and merge
QPDF_DLL
void externalizeInlineImages(size_t min_size = 0);