summaryrefslogtreecommitdiff
path: root/public/fpdf_catalog.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-10-16 13:32:01 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-16 17:46:49 +0000
commit077f6439954cdbb5061a78b59be95ebf2277ac26 (patch)
tree1f444c5fd6ced1da8452becf90c972676ce0dd92 /public/fpdf_catalog.h
parente5a637cfb23da32443b345b07f090b65771fa1c9 (diff)
downloadpdfium-077f6439954cdbb5061a78b59be95ebf2277ac26.tar.xz
Add FPDFCatalog_IsTagged to public API.
The new fpdf_catalog.h will contains functions to access entries in the catalog (root) dict in a PDF. Bug: chromium:768986 Change-Id: I6e1d4a479d6f8742981e89f07bab98ee96dc3763 Reviewed-on: https://pdfium-review.googlesource.com/15970 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'public/fpdf_catalog.h')
-rw-r--r--public/fpdf_catalog.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/fpdf_catalog.h b/public/fpdf_catalog.h
new file mode 100644
index 0000000000..48d27756f3
--- /dev/null
+++ b/public/fpdf_catalog.h
@@ -0,0 +1,34 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PUBLIC_FPDF_CATALOG_H_
+#define PUBLIC_FPDF_CATALOG_H_
+
+// NOLINTNEXTLINE(build/include)
+#include "fpdfview.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+/**
+ * Experimental API.
+ *
+ * Determine if |document| represents a tagged PDF.
+ *
+ * For the definition of tagged PDF, See (see 10.7 "Tagged PDF" in PDF
+ * Reference 1.7).
+ *
+ * document - handle to a document.
+ *
+ * Returns |true| iff |document| is a tagged PDF.
+ */
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
+FPDFCatalog_IsTagged(FPDF_DOCUMENT document);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif // __cplusplus
+
+#endif // PUBLIC_FPDF_CATALOG_H_