1 // Copyright 2017 PDFium Authors. All rights reserved.
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 
~CPDF_PageObjectAvail()9 CPDF_PageObjectAvail::~CPDF_PageObjectAvail() {}
10 
ExcludeObject(const CPDF_Object * object) const11 bool CPDF_PageObjectAvail::ExcludeObject(const CPDF_Object* object) const {
12   if (CPDF_ObjectAvail::ExcludeObject(object))
13     return true;
14 
15   return object->IsDictionary() &&
16          object->GetDict()->GetStringFor("Type") == "Page";
17 }
18