diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QUtil.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 30a73441..fe18c9b7 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -34,6 +34,7 @@ #include <time.h> class RandomDataProvider; +class Pipeline; namespace QUtil { @@ -119,6 +120,18 @@ namespace QUtil QPDF_DLL void rename_file(char const* oldname, char const* newname); + // Write the contents of filename as a binary file to the + // pipeline. + QPDF_DLL + void + pipe_file(char const* filename, Pipeline* p); + + // Return a function that will send the contents of the given file + // through the given pipeline as binary data. + QPDF_DLL + std::function<void(Pipeline*)> + file_provider(std::string const& filename); + QPDF_DLL char* copy_string(std::string const&); |