LastRenderError

Miscellaneous functions, Rendering and printing

Description

Returns the exception information in cases where the renderer encountered an error.

Syntax

Delphi

Function TPDFlib.LastRenderError: WideString;

ActiveX

Function PDFlib::LastRenderError() As String

DLL

const wchar_t* DLLastRenderError(int InstanceID);
const char* DLLastRenderErrorA(int InstanceID);

Return values

Returns the message of the most recent renderer exception. Returns an empty string when the last rendering operation completed without an error.

Source byte limit

function TPDFlib.GetRenderSourceSizeLimit: Int64;

Returns the selected renderer's serialized PDF byte limit, 0 if there is no serialized source limit, or -1 if the selected PDFium backend cannot be loaded. PDFium accepts up to 4,294,967,295 bytes with the custom loader or 2,147,483,647 bytes with the memory loader

PDFium rejects a loaded source above that limit before building a rendering snapshot and checks the snapshot size before handing it to the backend. LastRenderError gives the applicable limit after rejection. Use GetDocumentSourceSize to obtain the loaded input size