diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-12-26 17:13:00 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-12-28 19:03:04 +0100 |
commit | d4d7630cf544dc295202382026658b55bf49f76b (patch) | |
tree | 2a5796a99c99f0ee3d27db7f412923e697dd8781 /include | |
parent | ac042d16cfe6efd1ff3295e1507558a2f87ec73f (diff) | |
download | qpdf-d4d7630cf544dc295202382026658b55bf49f76b.tar.zst |
Add pdf-custom-filter example
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 060d21e1..ac59d428 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -92,6 +92,15 @@ class QPDFObjectHandle // writing linearized files, if the work done by your stream // data provider is slow or computationally intensive, you // might want to implement your own cache. + // + // * Once you have called replaceStreamData, the original + // stream data is no longer directly accessible from the + // stream, but this is easy to work around by copying the + // stream to a separate QPDF object. The qpdf library + // implements this very efficiently without actually making + // a copy of the stream data. You can find examples of this + // pattern in some of the examples, including + // pdf-custom-filter.cc and pdf-invert-images.cc. // Prior to qpdf 10.0.0, it was not possible to handle errors // the way pipeStreamData does or to pass back success. |