• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PUBLIC_FPDF_CATALOG_H_
6 #define PUBLIC_FPDF_CATALOG_H_
7 
8 // NOLINTNEXTLINE(build/include)
9 #include "fpdfview.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif  // __cplusplus
14 
15 // Experimental API.
16 //
17 // Determine if |document| represents a tagged PDF.
18 //
19 // For the definition of tagged PDF, See (see 10.7 "Tagged PDF" in PDF
20 // Reference 1.7).
21 //
22 //   document - handle to a document.
23 //
24 // Returns |true| iff |document| is a tagged PDF.
25 FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
26 FPDFCatalog_IsTagged(FPDF_DOCUMENT document);
27 
28 // Experimental API.
29 // Sets the language of |document| to |language|.
30 //
31 // document - handle to a document.
32 // language - the language to set to.
33 //
34 // Returns TRUE on success.
35 FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
36 FPDFCatalog_SetLanguage(FPDF_DOCUMENT document, FPDF_BYTESTRING language);
37 
38 #ifdef __cplusplus
39 }  // extern "C"
40 #endif  // __cplusplus
41 
42 #endif  // PUBLIC_FPDF_CATALOG_H_
43