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
fpdf_parser_utility.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

+ Include dependency graph for fpdf_parser_utility.cpp:

Go to the source code of this file.

Functions

absl::optional< FX_FILESIZEGetHeaderOffset (const RetainPtr< IFX_SeekableReadStream > &pFile)
 
ByteString PDF_NameDecode (ByteStringView orig)
 
ByteString PDF_NameEncode (const ByteString &orig)
 
std::vector< float > ReadArrayElementsToVector (const CPDF_Array *pArray, size_t nCount)
 
bool ValidateDictType (const CPDF_Dictionary *dict, ByteStringView type)
 
bool ValidateDictAllResourcesOfType (const CPDF_Dictionary *dict, ByteStringView type)
 
bool ValidateFontResourceDict (const CPDF_Dictionary *dict)
 
bool ValidateDictOptionalType (const CPDF_Dictionary *dict, ByteStringView type)
 
std::ostream & operator<< (std::ostream &buf, const CPDF_Object *pObj)
 

Variables

const char kPDFCharTypes [256]
 

Function Documentation

◆ GetHeaderOffset()

absl::optional< FX_FILESIZE > GetHeaderOffset ( const RetainPtr< IFX_SeekableReadStream > & pFile)

Definition at line 78 of file fpdf_parser_utility.cpp.

◆ operator<<()

◆ PDF_NameDecode()

ByteString PDF_NameDecode ( ByteStringView orig)

Definition at line 92 of file fpdf_parser_utility.cpp.

◆ PDF_NameEncode()

ByteString PDF_NameEncode ( const ByteString & orig)

Definition at line 113 of file fpdf_parser_utility.cpp.

References fxcrt::ByteString::c_str(), PDFCharIsDelimiter(), and PDFCharIsWhitespace().

Referenced by operator<<(), TEST(), and CPDF_Name::WriteTo().

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

◆ ReadArrayElementsToVector()

std::vector< float > ReadArrayElementsToVector ( const CPDF_Array * pArray,
size_t nCount )

Definition at line 151 of file fpdf_parser_utility.cpp.

◆ ValidateDictAllResourcesOfType()

bool ValidateDictAllResourcesOfType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 166 of file fpdf_parser_utility.cpp.

References CPDF_DictionaryLocker::CPDF_DictionaryLocker().

+ Here is the call graph for this function:

◆ ValidateDictOptionalType()

bool ValidateDictOptionalType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 185 of file fpdf_parser_utility.cpp.

References CPDF_Dictionary::GetNameFor(), and CPDF_Dictionary::KeyExist().

+ Here is the call graph for this function:

◆ ValidateDictType()

bool ValidateDictType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 161 of file fpdf_parser_utility.cpp.

References CPDF_Dictionary::GetNameFor().

+ Here is the call graph for this function:

◆ ValidateFontResourceDict()

bool ValidateFontResourceDict ( const CPDF_Dictionary * dict)

Definition at line 181 of file fpdf_parser_utility.cpp.

Variable Documentation

◆ kPDFCharTypes

const char kPDFCharTypes[256]