aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFPageObjectHelper.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-30 23:56:47 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-31 16:38:13 +0100
commit5211bcb5eaa2b6b3c8aa48580f1b97314c37bb4a (patch)
treed9e6153936c081044926c23054de375fba131698 /include/qpdf/QPDFPageObjectHelper.hh
parent22bcdbe786b5398d09fadae5c147359b9162293b (diff)
downloadqpdf-5211bcb5eaa2b6b3c8aa48580f1b97314c37bb4a.tar.zst
Externalize inline images (fixes #278)
Diffstat (limited to 'include/qpdf/QPDFPageObjectHelper.hh')
-rw-r--r--include/qpdf/QPDFPageObjectHelper.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh
index 0cd6be32..adf7cbda 100644
--- a/include/qpdf/QPDFPageObjectHelper.hh
+++ b/include/qpdf/QPDFPageObjectHelper.hh
@@ -73,6 +73,11 @@ class QPDFPageObjectHelper: public QPDFObjectHelper
QPDF_DLL
std::map<std::string, QPDFObjectHandle> getPageImages();
+ // Convert each inline image to an external (normal) image if the
+ // size is at least the specified number of bytes.
+ QPDF_DLL
+ void externalizeInlineImages(size_t min_size = 0);
+
// Return the annotations in the page's "/Annots" list, if any. If
// only_subtype is non-empty, only include annotations of the
// given subtype.