Inspect and Split
AI-generatedSummary
Analyze a PDF file to determine if it is vectorial (text-based) based on a minimum text length threshold, and if not vectorial, split the PDF into individual pages returning each as a separate item.
Inputs
- Binary Property (required) — Name of the binary property containing the input PDF file (default: 'data').
- Text Threshold — Minimum text length on the first page to consider the PDF as vectorial (text-based), default is 50 characters.
- Output Binary Property — Name for the output binary property of the resulting PDF pages after splitting (default: 'data').
Output shape
a list of items, each with JSON fields describing the PDF's inspection results and optionally page number, plus binary data property containing either the original PDF if vectorial or split individual pages if not
If the PDF is vectorial (first page's text length exceeds the threshold), returns a single item passing through the original binary plus inspection info. If non-vectorial, splits the PDF into one item per page with corresponding page number in JSON, each containing binary data for that page under the specified output binary property.