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) const12bool 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