xref: /aosp_15_r20/external/pdfium/core/fpdfapi/parser/cpdf_page_object_avail.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 "core/fpdfapi/parser/cpdf_page_object_avail.h"
6 
7 #include "core/fpdfapi/parser/cpdf_dictionary.h"
8 #include "core/fpdfapi/parser/fpdf_parser_utility.h"
9 
10 CPDF_PageObjectAvail::~CPDF_PageObjectAvail() = default;
11 
ExcludeObject(const CPDF_Object * object) const12 bool CPDF_PageObjectAvail::ExcludeObject(const CPDF_Object* object) const {
13   if (CPDF_ObjectAvail::ExcludeObject(object))
14     return true;
15 
16   // See ISO 32000-1:2008 spec, table 30.
17   return ValidateDictType(ToDictionary(object), "Page");
18 }
19