GetLastSVGImportDiagnostics

Vector graphics, SVG, filter import

Description

Inspect filter findings from the latest SVG import

Syntax

Delphi

Function TPDFlib.GetLastSVGImportDiagnostics: WideString;

DLL

const wchar_t* DLGetLastSVGImportDiagnostics(int InstanceID);
const char* DLGetLastSVGImportDiagnosticsA(int InstanceID);

ActiveX

Function PDFlib::GetLastSVGImportDiagnostics() As String

Return values

Returns the JSON diagnostics of the most recent SVG import on this instance.

Remarks

Returns JSON for the most recent DrawSVG, DrawSVGEx or successfully loaded DrawSVGFromFile import on this instance

The filter report records status, strict mode, rendered and committed flags, filter and primitive counts, work and buffer-reservation estimates, and findings containing filterID, primitive, code and detail

Status is not-started before evaluation, ok for evaluated supported operations, degraded for permissive findings and rejected when no import is committed after failure; initial and invalid-input reports can contain a reduced set of fields

At most 256 findings are retained, bounded string details prevent oversized reports and truncated identifies additional findings; counts and reservations describe this import, not current process memory

The report scope is SVG filter import and fullFidelity remains false; a clean filter report does not qualify every SVG feature or the semantic quality of AltText

The getter does not clear the latest error; copy DLL string pointers before another string-returning call on the same instance, and the A variant follows the configured ANSI encoding mode

ActiveX exposes this method through IPDFlibrary16 and the default dispatch interface; Pascal Automation callers can use CoPDFlibrary.CreateConversionTools

The macOS Dylib exposes the same wide and A C entry points shown above using the C calling convention; string pointers belong to the instance and must be copied before the next string-returning call, and A variants follow the configured ANSI or UTF-8 mode

Filter image evidence

The report includes filterImageFilesAllowed, filterImageEncodedBytes and filterImageDecodedBytes for the current call; failed resource qualification remains a finding, strict mode rejects page output and permissive mode retains its documented fallback

See also

DrawSVG