ProbeWorkflowRequestA
Getting started, workflow dependencies
Prepare or transform native Pascal requests with Workflow data tools, including atomic JSON Patch, bounded parsing and scoped memory resources
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to ProbeWorkflowRequest and string arguments are interpreted using the current SetAnsiMode code page
Checks the dependencies of a specific visual review, batch conversion or OCR request without executing that workflow or creating output files
Syntax
Delphi
Function DLProbeWorkflowRequestA(InstanceID: Integer; RequestJSON: PAnsiChar): PAnsiChar;
DLL
const char* DLProbeWorkflowRequestA(int InstanceID, const char* RequestJSON);
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}
]}}
| Workflow | Request object |
|---|---|
batch-conversion | The same jobs and resource budgets accepted by ConvertFilesBatch |
visual-review | baselineFileName, optional baselinePassword, options object and outputFileName; options follow SaveVisualComparisonPDF |
ocr | Explicit 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, while 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 while 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 already known to the library; no password is requested again and no delivery is executed
See also
GetEditionCapabilities · GetFeatureAvailability · ConvertFilesBatch · SaveVisualComparisonPDF