diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-10-04 17:24:10 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-10-04 17:24:10 +0200 |
commit | b36f62a326e10f2b1beb9f3791a7b607ea3f994a (patch) | |
tree | 28f65057ffcf035fe6365b2f7bddd817a442e9b6 /include | |
parent | bcb10021d71005b240cf49eb9c5968037d16a371 (diff) | |
download | qpdf-b36f62a326e10f2b1beb9f3791a7b607ea3f994a.tar.zst |
add qpdf_read_memory to C API
git-svn-id: svn+q:///qpdf/trunk@1044 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/qpdf-c.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h index f3f02e97..d83adcca 100644 --- a/include/qpdf/qpdf-c.h +++ b/include/qpdf/qpdf-c.h @@ -183,7 +183,21 @@ extern "C" { QPDF_ERROR_CODE qpdf_read(qpdf_data qpdf, char const* filename, char const* password); - /* Read functions below must be called after qpdf_read. */ + /* Calling qpdf_read_memory causes processMemoryFile to be called + * in the C++ API. Otherwise, it behaves in the same way as + * qpdf_read. The description argument will be used in place of + * the file name in any error or warning messages generated by the + * library. + */ + QPDF_DLL + QPDF_ERROR_CODE qpdf_read_memory(qpdf_data qpdf, + char const* description, + char const* buffer, + unsigned long size, + char const* password); + + /* Read functions below must be called after qpdf_read or + * qpdf_read_memory. */ /* Return the version of the PDF file. */ QPDF_DLL |