7#ifndef CORE_FPDFAPI_PARSER_CFDF_DOCUMENT_H_
8#define CORE_FPDFAPI_PARSER_CFDF_DOCUMENT_H_
12#include "core/fpdfapi/parser/cpdf_indirect_object_holder.h"
13#include "core/fxcrt/retain_ptr.h"
14#include "third_party/base/containers/span.h"
23 pdfium::span<
const uint8_t> span);
29 const CPDF_Dictionary*
GetRoot()
const {
return m_pRootDict.Get(); }
static std::unique_ptr< CFDF_Document > CreateNewDoc()
const CPDF_Dictionary * GetRoot() const
static std::unique_ptr< CFDF_Document > ParseMemory(pdfium::span< const uint8_t > span)
RetainPtr< CPDF_Dictionary > GetMutableRoot() const
~CFDF_Document() override
ByteString WriteToString() const
bool ReplaceIndirectObjectIfHigherGeneration(uint32_t objnum, RetainPtr< CPDF_Object > pObj)