Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_catalog.cpp
Go to the documentation of this file.
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
#
include
"public/fpdf_catalog.h"
6
7
#
include
"core/fpdfapi/parser/cpdf_dictionary.h"
8
#
include
"core/fpdfapi/parser/cpdf_document.h"
9
#
include
"fpdfsdk/cpdfsdk_helpers.h"
10
11
FPDF_EXPORT
FPDF_BOOL
FPDF_CALLCONV
12
FPDFCatalog_IsTagged
(FPDF_DOCUMENT document) {
13
CPDF_Document
* pDoc =
CPDFDocumentFromFPDFDocument
(
document
)
;
14
if
(!pDoc)
15
return
false
;
16
17
const
CPDF_Dictionary* pCatalog = pDoc
->
GetRoot
(
)
;
18
if
(!pCatalog)
19
return
false
;
20
21
RetainPtr
<
const
CPDF_Dictionary> pMarkInfo = pCatalog->GetDictFor(
"MarkInfo"
);
22
return
pMarkInfo && pMarkInfo->GetIntegerFor(
"Marked"
) != 0;
23
}
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Document::GetRoot
const CPDF_Dictionary * GetRoot() const
Definition
cpdf_document.h:97
fxcrt::RetainPtr
Definition
retain_ptr.h:29
CPDFDocumentFromFPDFDocument
CPDF_Document * CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc)
Definition
cpdfsdk_helpers.cpp:190
FPDFCatalog_IsTagged
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFCatalog_IsTagged(FPDF_DOCUMENT document)
Definition
fpdf_catalog.cpp:12
FPDF_CALLCONV
#define FPDF_CALLCONV
Definition
fpdfview.h:227
FPDF_EXPORT
#define FPDF_EXPORT
Definition
fpdfview.h:221
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
fpdf_catalog.cpp
Generated on Sat Sep 21 2024 00:57:10 for Qt by
1.12.0