Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_document.h>
Classes | |
class | Extension |
class | LinkListIface |
class | PageDataIface |
class | RenderDataIface |
Static Public Member Functions | |
static bool | IsValidPageObject (const CPDF_Object *obj) |
Static Public Attributes | |
static constexpr int | kPageMaxNum = 0xFFFFF |
Protected Member Functions | |
void | SetParser (std::unique_ptr< CPDF_Parser > pParser) |
void | SetRootForTesting (RetainPtr< CPDF_Dictionary > root) |
void | ResizePageListForTesting (size_t size) |
Protected Member Functions inherited from fxcrt::Observable | |
size_t | ActiveObserversForTesting () const |
Protected Member Functions inherited from CPDF_IndirectObjectHolder |
Additional Inherited Members | |
Public Types inherited from CPDF_IndirectObjectHolder | |
using | const_iterator |
Definition at line 28 of file cpdf_document.h.
CPDF_Document::CPDF_Document | ( | std::unique_ptr< RenderDataIface > | pRenderData, |
std::unique_ptr< PageDataIface > | pPageData ) |
Definition at line 168 of file cpdf_document.cpp.
References CPDF_Document().
Referenced by CPDF_Document().
|
override |
Definition at line 177 of file cpdf_document.cpp.
RetainPtr< CPDF_Stream > CPDF_Document::CreateModifiedAPStream | ( | ) |
Definition at line 386 of file cpdf_document.cpp.
void CPDF_Document::CreateNewDoc | ( | ) |
Definition at line 461 of file cpdf_document.cpp.
RetainPtr< CPDF_Dictionary > CPDF_Document::CreateNewPage | ( | int | iPage | ) |
Definition at line 475 of file cpdf_document.cpp.
References CPDF_IndirectObjectHolder::DeleteIndirectObject().
void CPDF_Document::DeletePage | ( | int | iPage | ) |
Definition at line 589 of file cpdf_document.cpp.
Referenced by FPDFPage_Delete().
|
inline |
Definition at line 91 of file cpdf_document.h.
Referenced by FPDF_GetPageCount(), FPDFPage_Delete(), MovePages(), ReportUnsupportedXFA(), and TEST_F().
RetainPtr< const CPDF_Array > CPDF_Document::GetFileIdentifier | ( | ) | const |
Definition at line 585 of file cpdf_document.cpp.
RetainPtr< CPDF_StreamAcc > CPDF_Document::GetFontFileStreamAcc | ( | RetainPtr< const CPDF_Stream > | pFontStream | ) |
Definition at line 445 of file cpdf_document.cpp.
RetainPtr< CPDF_Dictionary > CPDF_Document::GetInfo | ( | ) |
Definition at line 569 of file cpdf_document.cpp.
|
inline |
Definition at line 127 of file cpdf_document.h.
RetainPtr< CPDF_Dictionary > CPDF_Document::GetMutablePageDictionary | ( | int | iPage | ) |
Definition at line 371 of file cpdf_document.cpp.
|
inline |
Definition at line 98 of file cpdf_document.h.
JBig2_DocumentContext * CPDF_Document::GetOrCreateCodecContext | ( | ) |
Definition at line 380 of file cpdf_document.cpp.
int CPDF_Document::GetPageCount | ( | ) | const |
Definition at line 425 of file cpdf_document.cpp.
Referenced by FPDF_GetPageCount(), FPDFPage_New(), TEST_F(), and TryInit().
|
inline |
Definition at line 121 of file cpdf_document.h.
Referenced by CPDF_DocPageData::FromDocument().
RetainPtr< const CPDF_Dictionary > CPDF_Document::GetPageDictionary | ( | int | iPage | ) |
Definition at line 345 of file cpdf_document.cpp.
Referenced by TEST_F().
int CPDF_Document::GetPageIndex | ( | uint32_t | objnum | ) |
Definition at line 396 of file cpdf_document.cpp.
Referenced by CPDF_Dest::GetDestPageIndex(), and CPDFSDK_InteractiveForm::GetWidget().
|
inline |
Definition at line 155 of file cpdf_document.h.
Referenced by TEST_F(), TEST_F(), and TEST_F().
|
inline |
Definition at line 96 of file cpdf_document.h.
Referenced by FPDF_GetFileVersion(), FPDF_GetSecurityHandlerRevision(), FPDF_GetTrailerEnds(), FPDFAvail_GetFirstPageNum(), and CPDFSecurityHandlerEmbedderTest::RemoveTrailerIdFromDocument().
|
inline |
Definition at line 122 of file cpdf_document.h.
Referenced by CPDF_DocRenderData::FromDocument().
|
inline |
Definition at line 97 of file cpdf_document.h.
Referenced by FORM_DoDocumentAAction(), FPDF_CountNamedDests(), FPDF_GetFormType(), FPDF_GetNamedDest(), FPDFCatalog_IsTagged(), FPDFDoc_GetPageMode(), ReportUnsupportedFeatures(), and TryInit().
uint32_t CPDF_Document::GetUserPermissions | ( | bool | get_owner_perms | ) | const |
Definition at line 441 of file cpdf_document.cpp.
Referenced by FPDF_GetDocPermissions(), and FPDF_GetDocUserPermissions().
|
inline |
Definition at line 146 of file cpdf_document.h.
Referenced by FPDF_DocumentHasValidCrossReferenceTable().
|
inline |
Definition at line 154 of file cpdf_document.h.
bool CPDF_Document::IsModifiedAPStream | ( | const CPDF_Stream * | stream | ) | const |
Definition at line 392 of file cpdf_document.cpp.
bool CPDF_Document::IsPageLoaded | ( | int | iPage | ) | const |
Definition at line 341 of file cpdf_document.cpp.
Referenced by TEST_F().
|
static |
Definition at line 186 of file cpdf_document.cpp.
References ToDictionary().
Referenced by LoadPages(), and TEST_F().
CPDF_Parser::Error CPDF_Document::LoadDoc | ( | RetainPtr< IFX_SeekableReadStream > | pFileAccess, |
const ByteString & | password ) |
Definition at line 207 of file cpdf_document.cpp.
CPDF_Parser::Error CPDF_Document::LoadLinearizedDoc | ( | RetainPtr< CPDF_ReadValidator > | validator, |
const ByteString & | password ) |
Definition at line 217 of file cpdf_document.cpp.
void CPDF_Document::LoadPages | ( | ) |
Definition at line 227 of file cpdf_document.cpp.
References CPDF_LinearizedHeader::GetFirstPageNo(), CPDF_LinearizedHeader::GetFirstPageObjNum(), CPDF_IndirectObjectHolder::GetOrParseIndirectObject(), CPDF_LinearizedHeader::GetPageCount(), and IsValidPageObject().
Referenced by TEST_F(), and TryInit().
void CPDF_Document::MaybePurgeFontFileStreamAcc | ( | RetainPtr< CPDF_StreamAcc > && | pStreamAcc | ) |
Definition at line 450 of file cpdf_document.cpp.
void CPDF_Document::MaybePurgeImage | ( | uint32_t | objnum | ) |
Definition at line 456 of file cpdf_document.cpp.
bool CPDF_Document::MovePages | ( | pdfium::span< const int > | page_indices, |
int | dest_page_index ) |
Definition at line 609 of file cpdf_document.cpp.
References CPDF_Document::Extension::ContainsExtensionForm(), GetExtension(), and CPDF_Dictionary::GetIntegerFor().
Referenced by FPDF_MovePages().
|
overridevirtual |
Reimplemented from CPDF_IndirectObjectHolder.
Definition at line 191 of file cpdf_document.cpp.
|
protected |
Definition at line 685 of file cpdf_document.cpp.
Definition at line 92 of file cpdf_document.h.
|
inline |
Definition at line 128 of file cpdf_document.h.
void CPDF_Document::SetPageObjNum | ( | int | iPage, |
uint32_t | objNum ) |
Definition at line 376 of file cpdf_document.cpp.
Referenced by TEST_F().
|
protected |
Definition at line 320 of file cpdf_document.cpp.
|
protected |
Definition at line 605 of file cpdf_document.cpp.
Referenced by CPDF_TestDocument::SetRoot().
|
overridevirtual |
Implements CPDF_Parser::ParsedObjectsHolder.
Definition at line 195 of file cpdf_document.cpp.
References GetPageCount(), GetRoot(), and LoadPages().
|
staticconstexpr |
Definition at line 83 of file cpdf_document.h.
Referenced by CPDF_HintTables::ReadPageHintTable().