ProbeWorkflowRequest

Getting started, workflow dependencies

Prepare or transform native Pascal requests with the Workflow data tools, covering atomic JSON Patch, bounded parsing and scoped memory resources

Description

Checks the dependencies of a specific visual review, batch conversion or OCR request without executing that workflow or creating output files

Syntax

Delphi

Function TPDFlib.ProbeWorkflowRequest(Const RequestJSON: WideString): WideString;

ActiveX

Function PDFlib::ProbeWorkflowRequest(RequestJSON As String) As String

DLL

const wchar_t* DLProbeWorkflowRequest(int InstanceID, const wchar_t* RequestJSON);
const char* DLProbeWorkflowRequestA(int InstanceID, const char* RequestJSON);

Parameters

RequestJSONUTF-16 JSON request limited to 1 MiB whose root accepts only workflow, request and optional dependencies; workflow is visual-review, batch-conversion or ocr, and each dependency list accepts at most 32 entries

Return values

Returns the JSON readiness report with executionReadiness, canExecute, runtimeBackend and per-item state. An invalid schema returns status:"error" and sets LastErrorCode to 905; a valid report keeps status ok even when individual items are unavailable or unknown.

Request

The root accepts only workflow, request and optional dependencies; workflow is visual-review, batch-conversion or ocr

{"workflow":"batch-conversion","request":{"jobs":[
 {"input":"brochure.pdf","output":"brochure-x4.pdf",
  "preset":{"name":"print-x4","profileFile":"press.icc"}}
]},"dependencies":{"fonts":[
 {"fileName":"heading.ttf","family":"Heading Family","text":"Invoice 123",
  "requireEmbedding":true,"requireSubset":false,"faceIndex":0}
]}}
WorkflowRequest object
batch-conversionThe same jobs and resource budgets accepted by ConvertFilesBatch
visual-reviewbaselineFileName, optional baselinePassword, options object and outputFileName; options follow SaveVisualComparisonPDF
ocrExplicit language, such as eng+deu, and optional Boolean detectOrientation

Dependencies accept fonts, iccProfiles and ocr; each list accepts at most 32 entries

A font entry can be a file path or an object with fileName, optional family, text, requireEmbedding, requireSubset and faceIndex; checks use font tables, embedding permissions and cmap coverage for the supplied Unicode text, without claiming layout or shaping correctness

iccProfiles contains profile file paths; a print preset additionally checks the supplied output profile against the supported printing-profile requirements

OCR dependencies accept provider as configured, native or tesseract, with optional executable, tessdataDirectory and orientationDataDirectory; explicit language data is inspected without starting the OCR process

Return values

Returns executionReadiness as available, unavailable or unknown, canExecute, the selected runtimeBackend and individual items with state, reason and local dependency details

canExecute:true means the declared dependency checks allow entering execution; it does not guarantee conversion success, write permissions, complete language recognition, successful rendering of all document content or standards certification

The report states readOnly:true, workflowExecuted:false and fullCertification:false; resource limits are validated before execution; visual inputs and raster conversion jobs also receive geometry-only pixel estimates without rendering, whilst estimatedRasterPixels:null identifies a request whose input geometry was not established

Windows network, mapped-drive and indirect reparse paths are not opened; other platforms reject explicit remote path syntax without claiming to classify all mounted filesystems; unknown credentials, provider execution and remote services remain unknown

Requests are limited to 1 MiB, with bounded local dependency reads; invalid schemas return status:"error" and error 905; a valid report can contain unavailable or unknown items whilst its operation status remains ok

All editions can inspect requests; the report separately identifies whether the instance includes the requested business workflow; ActiveX uses IPDFlibrary10 or CoPDFlibrary.CreateEditionTools10, and Dylib exposes the same wide and ANSI names with cdecl

Run the shared workflow CLI example through the Delphi, Lazarus or C++Builder entry for the required edition, including progress and batch cancellation

Current encrypted documents are inspected through an isolated snapshot using the document password the library already holds; no password is asked for again and no delivery is executed

See also

GetEditionCapabilities · GetFeatureAvailability · ConvertFilesBatch · SaveVisualComparisonPDF