Home
last modified time | relevance | path

Searched refs:CPDF_Parser (Results 1 – 21 of 21) sorted by relevance

/external/pdfium/core/fpdfapi/parser/
Dcpdf_parser.cpp62 CPDF_Parser::ObjectType GetObjectTypeFromCrossRefStreamType( in GetObjectTypeFromCrossRefStreamType()
66 return CPDF_Parser::ObjectType::kFree; in GetObjectTypeFromCrossRefStreamType()
68 return CPDF_Parser::ObjectType::kNotCompressed; in GetObjectTypeFromCrossRefStreamType()
70 return CPDF_Parser::ObjectType::kCompressed; in GetObjectTypeFromCrossRefStreamType()
72 return CPDF_Parser::ObjectType::kNull; in GetObjectTypeFromCrossRefStreamType()
143 class ObjectsHolderStub final : public CPDF_Parser::ParsedObjectsHolder {
152 CPDF_Parser::CPDF_Parser(ParsedObjectsHolder* holder) in CPDF_Parser() function in CPDF_Parser
161 CPDF_Parser::CPDF_Parser() : CPDF_Parser(nullptr) {} in CPDF_Parser() function in CPDF_Parser
163 CPDF_Parser::~CPDF_Parser() = default;
165 uint32_t CPDF_Parser::GetLastObjNum() const { in GetLastObjNum()
[all …]
Dcpdf_parser_unittest.cpp29 CPDF_CrossRefTable::ObjectInfo GetObjInfo(const CPDF_Parser& parser, in GetObjInfo()
35 class TestObjectsHolder final : public CPDF_Parser::ParsedObjectsHolder {
48 class CPDF_TestParser final : public CPDF_Parser {
50 CPDF_TestParser() : CPDF_Parser(&object_holder_) {} in CPDF_TestParser()
79 using CPDF_Parser::LoadCrossRefV4;
80 using CPDF_Parser::ParseLinearizedHeader;
81 using CPDF_Parser::ParseStartXRef;
82 using CPDF_Parser::RebuildCrossRef;
83 using CPDF_Parser::StartParseInternal;
359 EXPECT_EQ(CPDF_Parser::FORMAT_ERROR, parser.StartParseInternal()); in TEST()
[all …]
Dcpdf_document.h28 public CPDF_Parser::ParsedObjectsHolder {
96 CPDF_Parser* GetParser() const { return m_pParser.get(); } in GetParser()
138 CPDF_Parser::Error LoadDoc(RetainPtr<IFX_SeekableReadStream> pFileAccess,
140 CPDF_Parser::Error LoadLinearizedDoc(RetainPtr<CPDF_ReadValidator> validator,
154 void SetParser(std::unique_ptr<CPDF_Parser> pParser);
190 CPDF_Parser::Error HandleLoadResult(CPDF_Parser::Error error);
192 std::unique_ptr<CPDF_Parser> m_pParser;
Dcpdf_cross_ref_table.cpp40 if (obj_num >= CPDF_Parser::kMaxObjectNumber || in AddCompressed()
41 archive_obj_num >= CPDF_Parser::kMaxObjectNumber) { in AddCompressed()
64 if (obj_num >= CPDF_Parser::kMaxObjectNumber) { in AddNormal()
84 if (obj_num >= CPDF_Parser::kMaxObjectNumber) { in SetFree()
Dcpdf_parser.h37 class CPDF_Parser {
64 explicit CPDF_Parser(ParsedObjectsHolder* holder);
65 CPDF_Parser();
66 ~CPDF_Parser();
Dcpdf_document.cpp165 CPDF_Parser::Error CPDF_Document::LoadDoc( in LoadDoc()
169 SetParser(std::make_unique<CPDF_Parser>(this)); in LoadDoc()
175 CPDF_Parser::Error CPDF_Document::LoadLinearizedDoc( in LoadLinearizedDoc()
179 SetParser(std::make_unique<CPDF_Parser>(this)); in LoadLinearizedDoc()
278 void CPDF_Document::SetParser(std::unique_ptr<CPDF_Parser> pParser) { in SetParser()
283 CPDF_Parser::Error CPDF_Document::HandleLoadResult(CPDF_Parser::Error error) { in HandleLoadResult()
284 if (error == CPDF_Parser::SUCCESS) in HandleLoadResult()
Dcpdf_hint_tables.cpp105 if (!dwObjLeastNum || dwObjLeastNum >= CPDF_Parser::kMaxObjectNumber) in ReadPageHintTable()
180 dwStartObjNum.ValueOrDie() >= CPDF_Parser::kMaxObjectNumber) { in ReadPageHintTable()
307 if (dwFirstSharedObjNum >= CPDF_Parser::kMaxObjectNumber || in ReadSharedObjHintTable()
308 m_nFirstPageSharedObjs >= CPDF_Parser::kMaxObjectNumber || in ReadSharedObjHintTable()
309 dwSharedObjTotal >= CPDF_Parser::kMaxObjectNumber) { in ReadSharedObjHintTable()
Dcpdf_data_avail.cpp214 CPDF_Parser* pParser = m_pDocument ? m_pDocument->GetParser() : &m_parser; in GetObject()
786 CPDF_Parser::Error eRet = in CheckLinearizedData()
789 if (eRet != CPDF_Parser::SUCCESS) in CheckLinearizedData()
1023 std::pair<CPDF_Parser::Error, std::unique_ptr<CPDF_Document>>
1030 return std::make_pair(CPDF_Parser::HANDLER_ERROR, nullptr); in ParseDocument()
1037 CPDF_Parser::Error error = in ParseDocument()
1043 return std::make_pair(CPDF_Parser::HANDLER_ERROR, nullptr); in ParseDocument()
1046 if (error != CPDF_Parser::SUCCESS) in ParseDocument()
1050 return std::make_pair(CPDF_Parser::SUCCESS, std::move(document)); in ParseDocument()
Dcpdf_data_avail.h88 std::pair<CPDF_Parser::Error, std::unique_ptr<CPDF_Document>> ParseDocument(
169 CPDF_Parser m_parser;
Dcpdf_object_stream.cpp39 static_cast<int>(CPDF_Parser::kMaxObjectNumber)) { in IsObjectStream()
Dcpdf_object.cpp24 static_assert(CPDF_Parser::kMaxObjectNumber < static_cast<uint32_t>(1) << 31,
Dcpdf_linearized_header.cpp51 header->GetFirstPageObjNum() < CPDF_Parser::kMaxObjectNumber && in IsLinearizedHeaderValid()
Dobject_tree_traversal_util.cpp29 const CPDF_Parser* parser = document_->GetParser(); in ObjectTreeTraverser()
Dcpdf_document_unittest.cpp266 auto parser = std::make_unique<CPDF_Parser>(); in TEST_F()
Dcpdf_security_handler_embeddertest.cpp73 CPDF_Parser* parser = doc->GetParser(); in RemoveTrailerIdFromDocument()
/external/pdfium/fpdfsdk/
Dcpdfsdk_helpers.cpp429 void ProcessParseError(CPDF_Parser::Error err) { in ProcessParseError()
433 case CPDF_Parser::SUCCESS: in ProcessParseError()
436 case CPDF_Parser::FILE_ERROR: in ProcessParseError()
439 case CPDF_Parser::FORMAT_ERROR: in ProcessParseError()
442 case CPDF_Parser::PASSWORD_ERROR: in ProcessParseError()
445 case CPDF_Parser::HANDLER_ERROR: in ProcessParseError()
Dfpdf_dataavail.cpp173 CPDF_Parser::Error error; in FPDFAvail_GetDocument()
178 if (error != CPDF_Parser::SUCCESS) { in FPDFAvail_GetDocument()
Dfpdf_view.cpp194 ProcessParseError(CPDF_Parser::FILE_ERROR); in LoadDocumentImpl()
202 CPDF_Parser::Error error = in LoadDocumentImpl()
204 if (error != CPDF_Parser::SUCCESS) { in LoadDocumentImpl()
354 const CPDF_Parser* pParser = pDoc->GetParser(); in FPDF_GetFileVersion()
Dcpdfsdk_helpers.h300 void ProcessParseError(CPDF_Parser::Error err);
/external/pdfium/core/fpdfapi/edit/
Dcpdf_creator.h24 class CPDF_Parser; variable
76 UnownedPtr<CPDF_Parser> const m_pParser;
/external/pdfium/core/fpdfapi/page/
Dcpdf_pageimagecache_unittest.cpp38 CPDF_Parser::SUCCESS); in TEST()