Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_TestParser Class Referencefinal
+ Inheritance diagram for CPDF_TestParser:
+ Collaboration diagram for CPDF_TestParser:

Public Member Functions

 CPDF_TestParser ()
 
 ~CPDF_TestParser ()=default
 
bool InitTestFromFile (const char *path)
 
bool InitTestFromBufferWithOffset (pdfium::span< const uint8_t > buffer, FX_FILESIZE header_offset)
 
bool InitTestFromBuffer (pdfium::span< const uint8_t > buffer)
 
TestObjectsHolder & object_holder ()
 
 CPDF_TestParser ()
 
 ~CPDF_TestParser ()=default
 
bool InitTestFromFile (const char *path)
 
bool InitTestFromBufferWithOffset (pdfium::span< const uint8_t > buffer, FX_FILESIZE header_offset)
 
bool InitTestFromBuffer (pdfium::span< const uint8_t > buffer)
 
TestObjectsHolder & object_holder ()
 
bool LoadCrossRefV4 (FX_FILESIZE pos, bool bSkip)
 
std::unique_ptr< CPDF_LinearizedHeaderParseLinearizedHeader ()
 
FX_FILESIZE ParseStartXRef ()
 
bool RebuildCrossRef ()
 
Error StartParseInternal ()
 
- Public Member Functions inherited from CPDF_Parser
 CPDF_Parser (ParsedObjectsHolder *holder)
 
 CPDF_Parser ()
 
 ~CPDF_Parser ()
 
Error StartParse (RetainPtr< IFX_SeekableReadStream > pFile, const ByteString &password)
 
Error StartLinearizedParse (RetainPtr< CPDF_ReadValidator > validator, const ByteString &password)
 
void SetPassword (const ByteString &password)
 
ByteString GetPassword () const
 
ByteString GetEncodedPassword () const
 
const CPDF_DictionaryGetTrailer () const
 
CPDF_DictionaryGetMutableTrailerForTesting ()
 
uint32_t GetTrailerObjectNumber () const
 
RetainPtr< CPDF_DictionaryGetCombinedTrailer () const
 
FX_FILESIZE GetLastXRefOffset () const
 
uint32_t GetPermissions (bool get_owner_perms) const
 
uint32_t GetRootObjNum () const
 
uint32_t GetInfoObjNum () const
 
RetainPtr< const CPDF_ArrayGetIDArray () const
 
RetainPtr< const CPDF_DictionaryGetRoot () const
 
RetainPtr< const CPDF_DictionaryGetEncryptDict () const
 
RetainPtr< CPDF_ObjectParseIndirectObject (uint32_t objnum)
 
uint32_t GetLastObjNum () const
 
bool IsValidObjectNumber (uint32_t objnum) const
 
FX_FILESIZE GetObjectPositionOrZero (uint32_t objnum) const
 
bool IsObjectFreeOrNull (uint32_t objnum) const
 
const RetainPtr< CPDF_SecurityHandler > & GetSecurityHandler () const
 
bool IsObjectFree (uint32_t objnum) const
 
int GetFileVersion () const
 
bool IsXRefStream () const
 
RetainPtr< CPDF_ObjectParseIndirectObjectAt (FX_FILESIZE pos, uint32_t objnum)
 
FX_FILESIZE GetDocumentSize () const
 
uint32_t GetFirstPageNo () const
 
const CPDF_LinearizedHeaderGetLinearizedHeader () const
 
const CPDF_CrossRefTableGetCrossRefTable () const
 
bool xref_table_rebuilt () const
 
std::vector< unsigned int > GetTrailerEnds ()
 
bool WriteToArchive (IFX_ArchiveStream *archive, FX_FILESIZE src_size)
 
void SetLinearizedHeaderForTesting (std::unique_ptr< CPDF_LinearizedHeader > pLinearized)
 

Additional Inherited Members

- Public Types inherited from CPDF_Parser
enum  Error {
  SUCCESS = 0 , FILE_ERROR , FORMAT_ERROR , PASSWORD_ERROR ,
  HANDLER_ERROR
}
 
- Static Public Attributes inherited from CPDF_Parser
static constexpr uint32_t kMaxObjectNumber = 4 * 1024 * 1024
 
static constexpr size_t kInvalidPos = std::numeric_limits<size_t>::max()
 
- Protected Member Functions inherited from CPDF_Parser
bool LoadCrossRefV4 (FX_FILESIZE pos, bool bSkip)
 
bool RebuildCrossRef ()
 
Error StartParseInternal ()
 
FX_FILESIZE ParseStartXRef ()
 
std::unique_ptr< CPDF_LinearizedHeaderParseLinearizedHeader ()
 
void SetSyntaxParserForTesting (std::unique_ptr< CPDF_SyntaxParser > parser)
 

Detailed Description

Definition at line 100 of file cpdf_parser_unittest.cpp.

Constructor & Destructor Documentation

◆ CPDF_TestParser() [1/2]

CPDF_TestParser::CPDF_TestParser ( )
inline

Definition at line 102 of file cpdf_parser_unittest.cpp.

◆ ~CPDF_TestParser() [1/2]

CPDF_TestParser::~CPDF_TestParser ( )
default

◆ CPDF_TestParser() [2/2]

CPDF_TestParser::CPDF_TestParser ( )
inline

Definition at line 102 of file cpdf_parser_unittest.cpp.

◆ ~CPDF_TestParser() [2/2]

CPDF_TestParser::~CPDF_TestParser ( )
default

Member Function Documentation

◆ InitTestFromBuffer() [1/2]

bool CPDF_TestParser::InitTestFromBuffer ( pdfium::span< const uint8_t > buffer)
inline

Definition at line 126 of file cpdf_parser_unittest.cpp.

References InitTestFromBufferWithOffset().

Referenced by TEST(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitTestFromBuffer() [2/2]

bool CPDF_TestParser::InitTestFromBuffer ( pdfium::span< const uint8_t > buffer)
inline

Definition at line 126 of file cpdf_parser_unittest.cpp.

◆ InitTestFromBufferWithOffset() [1/2]

bool CPDF_TestParser::InitTestFromBufferWithOffset ( pdfium::span< const uint8_t > buffer,
FX_FILESIZE header_offset )
inline

Definition at line 119 of file cpdf_parser_unittest.cpp.

Referenced by InitTestFromBuffer(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ InitTestFromBufferWithOffset() [2/2]

bool CPDF_TestParser::InitTestFromBufferWithOffset ( pdfium::span< const uint8_t > buffer,
FX_FILESIZE header_offset )
inline

Definition at line 119 of file cpdf_parser_unittest.cpp.

◆ InitTestFromFile() [1/2]

bool CPDF_TestParser::InitTestFromFile ( const char * path)
inline

Definition at line 106 of file cpdf_parser_unittest.cpp.

Referenced by TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ InitTestFromFile() [2/2]

bool CPDF_TestParser::InitTestFromFile ( const char * path)
inline

Definition at line 106 of file cpdf_parser_unittest.cpp.

◆ LoadCrossRefV4()

bool CPDF_Parser::LoadCrossRefV4 ( FX_FILESIZE pos,
bool bSkip )

Definition at line 130 of file cpdf_parser.cpp.

◆ object_holder() [1/2]

TestObjectsHolder & CPDF_TestParser::object_holder ( )
inline

Definition at line 137 of file cpdf_parser_unittest.cpp.

◆ object_holder() [2/2]

TestObjectsHolder & CPDF_TestParser::object_holder ( )
inline

Definition at line 137 of file cpdf_parser_unittest.cpp.

◆ ParseLinearizedHeader()

std::unique_ptr< CPDF_LinearizedHeader > CPDF_Parser::ParseLinearizedHeader ( )

Definition at line 134 of file cpdf_parser.cpp.

References CPDF_ArrayLocker::CPDF_ArrayLocker().

+ Here is the call graph for this function:

◆ ParseStartXRef()

FX_FILESIZE CPDF_Parser::ParseStartXRef ( )

Definition at line 133 of file cpdf_parser.cpp.

◆ RebuildCrossRef()

bool CPDF_Parser::RebuildCrossRef ( )

Definition at line 131 of file cpdf_parser.cpp.

◆ StartParseInternal()

CPDF_Parser::Error CPDF_Parser::StartParseInternal ( )

Definition at line 132 of file cpdf_parser.cpp.


The documentation for this class was generated from the following file: