From 98da4fd83527f47a28132ff4a120bc043d9e58f6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 2 Jan 2021 09:47:27 -0500 Subject: Externalize inline images now includes form XObjects --- include/qpdf/QPDFPageObjectHelper.hh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') 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 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); -- cgit v1.2.3-54-g00ecf