GetDocumentFileSize
Document properties
Description
Returns the file size of the selected document.
The size cannot be determined dynamically - it will only be set directly after a call to LoadFromFile, LoadFromStream, LoadFromString, LoadFromVariant, SaveToFile, SaveToStream, SaveToString or SaveToVariant.
Syntax
Delphi
Function TPDFlib.GetDocumentFileSize: Integer;
ActiveX
Function PDFlib::GetDocumentFileSize() As Long
DLL
int DLGetDocumentFileSize(int InstanceID);
Return values
Returns a legacy 32-bit size value. Loading or saving can update the value
Exact loaded source size
function TPDFlib.GetDocumentSourceSize: Int64;
Returns the original byte length of the selected document's input file, stream, string or byte-range source. Later edits, saves and renderer snapshots leave this value unchanged. A new document without loaded input returns 0