![]() |
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 | ResizePageListForTesting (size_t size) |
Protected Member Functions inherited from fxcrt::Observable | |
size_t | ActiveObserversForTesting () const |
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 169 of file cpdf_document.cpp.
References CPDF_Document().
Referenced by CPDF_Document().
|
override |
Definition at line 178 of file cpdf_document.cpp.
RetainPtr< CPDF_Stream > CPDF_Document::CreateModifiedAPStream | ( | RetainPtr< CPDF_Dictionary > | dict | ) |
Definition at line 387 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().
uint32_t 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 447 of file cpdf_document.cpp.
RetainPtr< CPDF_Dictionary > CPDF_Document::GetInfo | ( | ) |
Definition at line 569 of file cpdf_document.cpp.
|
inline |
Definition at line 132 of file cpdf_document.h.
RetainPtr< CPDF_Dictionary > CPDF_Document::GetMutablePageDictionary | ( | int | iPage | ) |
Definition at line 372 of file cpdf_document.cpp.
|
inline |
Definition at line 98 of file cpdf_document.h.
JBig2_DocumentContext * CPDF_Document::GetOrCreateCodecContext | ( | ) |
Definition at line 381 of file cpdf_document.cpp.
int CPDF_Document::GetPageCount | ( | ) | const |
Definition at line 427 of file cpdf_document.cpp.
Referenced by FPDF_GetPageCount(), FPDF_ImportPagesByIndex(), FPDFPage_New(), TEST_F(), and TryInit().
|
inline |
Definition at line 126 of file cpdf_document.h.
Referenced by CPDF_DocPageData::FromDocument().
RetainPtr< const CPDF_Dictionary > CPDF_Document::GetPageDictionary | ( | int | iPage | ) |
Definition at line 346 of file cpdf_document.cpp.
Referenced by TEST_F().
int CPDF_Document::GetPageIndex | ( | uint32_t | objnum | ) |
Definition at line 398 of file cpdf_document.cpp.
Referenced by CPDF_Dest::GetDestPageIndex(), and CPDFSDK_InteractiveForm::GetWidget().
|
inline |
Definition at line 162 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 127 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(), TEST_F(), and TryInit().
uint32_t CPDF_Document::GetUserPermissions | ( | bool | get_owner_perms | ) | const |
Definition at line 443 of file cpdf_document.cpp.
Referenced by FPDF_GetDocPermissions(), and FPDF_GetDocUserPermissions().
|
inline |
Definition at line 153 of file cpdf_document.h.
Referenced by FPDF_DocumentHasValidCrossReferenceTable().
|
inline |
Definition at line 161 of file cpdf_document.h.
bool CPDF_Document::IsModifiedAPStream | ( | const CPDF_Stream * | stream | ) | const |
Definition at line 394 of file cpdf_document.cpp.
bool CPDF_Document::IsPageLoaded | ( | int | iPage | ) | const |
Definition at line 342 of file cpdf_document.cpp.
Referenced by TEST_F().
|
static |
Definition at line 187 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 208 of file cpdf_document.cpp.
CPDF_Parser::Error CPDF_Document::LoadLinearizedDoc | ( | RetainPtr< CPDF_ReadValidator > | validator, |
const ByteString & | password ) |
Definition at line 218 of file cpdf_document.cpp.
void CPDF_Document::LoadPages | ( | ) |
Definition at line 228 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 452 of file cpdf_document.cpp.
void CPDF_Document::MaybePurgeImage | ( | uint32_t | objnum | ) |
Definition at line 457 of file cpdf_document.cpp.
bool CPDF_Document::MovePages | ( | pdfium::span< const int > | page_indices, |
int | dest_page_index ) |
Definition at line 643 of file cpdf_document.cpp.
References CPDF_Document::Extension::ContainsExtensionForm(), GetExtension(), and CPDF_Dictionary::GetIntegerFor().
|
overridevirtual |
Reimplemented from CPDF_IndirectObjectHolder.
Definition at line 192 of file cpdf_document.cpp.
|
protected |
Definition at line 719 of file cpdf_document.cpp.
Definition at line 92 of file cpdf_document.h.
|
inline |
Definition at line 133 of file cpdf_document.h.
void CPDF_Document::SetPageObjNum | ( | int | iPage, |
uint32_t | objNum ) |
Definition at line 377 of file cpdf_document.cpp.
Referenced by TEST_F().
void CPDF_Document::SetPageToNullObject | ( | uint32_t | page_obj_num | ) |
Definition at line 614 of file cpdf_document.cpp.
References CPDF_IndirectObjectHolder::DeleteIndirectObject(), and CPDF_IndirectObjectHolder::ReplaceIndirectObjectIfHigherGeneration().
Referenced by FPDFPage_Delete().
|
protected |
Definition at line 321 of file cpdf_document.cpp.
void CPDF_Document::SetRootForTesting | ( | RetainPtr< CPDF_Dictionary > | root | ) |
Definition at line 639 of file cpdf_document.cpp.
Referenced by CPDF_TestDocument::SetRoot(), and TEST_F().
|
overridevirtual |
Implements CPDF_Parser::ParsedObjectsHolder.
Definition at line 196 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().