aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-02-17 17:51:10 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-19 03:06:27 +0100
commit2780a1871d2603e9b273580fb7978d277832c2fc (patch)
tree270b1195eed7eb93e5a339a965c08b549239958d /include
parentb72a38bf5ff3adf9bf02046b1106e1b524afa922 (diff)
downloadqpdf-2780a1871d2603e9b273580fb7978d277832c2fc.tar.zst
Add C API for checking PDF files
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/qpdf-c.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h
index 4773809e..a6002a92 100644
--- a/include/qpdf/qpdf-c.h
+++ b/include/qpdf/qpdf-c.h
@@ -180,6 +180,14 @@ extern "C" {
QPDF_DLL
void qpdf_set_suppress_warnings(qpdf_data qpdf, QPDF_BOOL value);
+ /* CHECK FUNCTIONS */
+
+ /* Attempt to read the entire PDF file to see if there are any
+ * errors qpdf can detect.
+ */
+ QPDF_DLL
+ QPDF_ERROR_CODE qpdf_check_pdf(qpdf_data qpdf);
+
/* READ FUNCTIONS */
/* READ PARAMETER FUNCTIONS -- must be called before qpdf_read */