diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-09-23 23:42:26 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-09-23 23:42:26 +0200 |
commit | 041397fdabde66574824db7582a26ef1e3fbfc65 (patch) | |
tree | bb9d46db2082978e8c7fbbe4373e5df8e70e68b1 /include/qpdf/QPDF.hh | |
parent | 8c99e4a6c0f79c62fb9983404086c72ecf54ac83 (diff) | |
download | qpdf-041397fdabde66574824db7582a26ef1e3fbfc65.tar.zst |
Allow reading from InputSource and writing to Pipeline
Allowing users to subclass InputSource and Pipeline to read and write
from/to arbitrary sources provides the maximum flexibility for users
who want to read and write from other than files or memory.
Diffstat (limited to 'include/qpdf/QPDF.hh')
-rw-r--r-- | include/qpdf/QPDF.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index e594a44a..64858625 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -72,6 +72,13 @@ class QPDF char const* buf, size_t length, char const* password = 0); + // Parse a PDF file loaded from a custom InputSource. If you have + // your own method of retrieving a PDF file, you can subclass + // InputSource and use this method. + QPDF_DLL + void processInputSource(PointerHolder<InputSource>, + char const* password = 0); + // Create a QPDF object for an empty PDF. This PDF has no pages // or objects other than a minimal trailer, a document catalog, // and a /Pages tree containing zero pages. Pages and other |