Workflow Recipes
March 14, 2026 ยท View on GitHub
Use these patterns when the task spans more than one DWS feature and ordering matters.
1. Scan to searchable text
Goal: take an image-only PDF and produce both a searchable PDF and extracted text.
Recommended sequence:
- OCR the source PDF into a searchable PDF.
- Extract text from the searchable result.
Reasoning: OCR improves extraction quality and gives you a reusable intermediate artifact.
2. Scan to redacted delivery PDF
Goal: redact a scanned document and deliver a shareable PDF.
Recommended sequence:
- OCR
- Preset or regex redaction
- Optional watermark
- Optional optimization or linearization
- Signature last, if required
Reasoning: OCR enables reliable matching, and signatures should only happen after all content mutations are complete.
3. HTML report to archival PDF
Goal: generate a PDF from structured content and archive it.
Recommended sequence:
- Generate PDF from HTML
- Convert the result to PDF/A
- Validate the archival output in your downstream compliance workflow if required
Reasoning: HTML generation gives you better structure control than post-hoc browser printing, and PDF/A should be treated as a final archival artifact.
4. Existing PDF to accessible PDF/UA
Goal: turn a born-digital PDF into a screen-reader-ready artifact.
Recommended sequence:
- Start from the cleanest available PDF
- Run PDF/UA auto-tagging
- Validate the result with your required accessibility checker
Reasoning: flattened, rasterized, or noisy inputs reduce tagging quality.
5. Form packet to signed output
Goal: fill a form, remove interactivity if needed, and sign it.
Recommended sequence:
- Fill form fields
- Optional flattening
- Signature last
Reasoning: signing too early forces a second mutation pass and can invalidate the signed artifact.
6. Web delivery PDF
Goal: publish a PDF that streams quickly in viewers.
Recommended sequence:
- Final content edits
- Optional compression
- Linearization
- Publish to a server that supports byte-range requests
Reasoning: linearization is a delivery concern, not an authoring concern.
7. Packet assembly before signing
Goal: merge multiple PDFs, fix page orientation, and produce a final packet for signing or distribution.
Recommended sequence:
- Merge or reorder the required parts
- Extract or omit page ranges as needed
- Optional page rotation
- Optional flattening
- Watermark, sign, optimize, or linearize last
Reasoning: assembly and page normalization are still content mutations. Final-artifact operations should happen only after the packet shape is stable.
Recipe heuristics
- Keep OCR early.
- Keep compliance targets intentional.
- Keep signatures last.
- Treat optimization as a delivery-stage step unless the workflow explicitly needs it earlier.