GetDocumentSourceSize
Document management
Description
Return the 64-bit byte size of the loaded PDF source stream or file
Syntax
Delphi
Function TPDFlib.GetDocumentSourceSize: Int64;
Return values
Returns the 64-bit byte length of the selected document's original input source, or 0 when no source stream is associated with the document.
Remarks
Unlike GetDocumentFileSize, this method returns an Int64 result so files larger than 2 GiB are reported without 32-bit integer truncation.
In-memory documents created with NewDocument that were not loaded from a file or byte stream return 0 until saved and reloaded.