Source docs v0.1.0-beta.9
Install v0.1.0-beta.7
PDF operations¶
Create or assemble a PDF, apply edits and review the output before certifying or signing it. The capability matrix identifies interfaces and release versions.
| Operation | Behavior and boundaries | Implementation and checks |
|---|---|---|
| Merge and append | Combine unsigned, unencrypted PDFs in order. On main, merge preserves available structure trees, including a single document root for tagged inputs. Merging creates a new document. Profile claims and interactive forms need separate handling. | Merge and tests · Tag merge · HTTP use |
| Overlay and watermark | Place text, images, vector marks or barcodes on selected pages. Positions use displayed top-left coordinates. Marks are artifacts in tagged PDFs. The operation refuses signed, encrypted and permissions-restricted inputs. | Overlay and tests · HTTP use |
| Rasterize and preview | Rasterize existing PDFs with Hayro, or render JSON and preview its pages. Scale and page caps affect cost and output. This is page imaging. | Raster and tests · Preview endpoint |
| Redact | Plan, preview and apply a document-bound redaction. A preview masks proposed areas for review. Applying reconstructs a flattened PDF from redacted page pixels, so interactive forms, tags and selectable text are lost. Run untrusted inputs in the bounded CLI child process. | Redaction guide · Implementation · Reader checks |
| Create and fill AcroForms | JSON and selected HTML controls produce fillable fields. In-process Rust exports and imports field values and flattens unsigned forms. The CLI exposes flattening. Field appearance, signature fields, scripts, and XFA are subject to the documented restrictions. | Format · Value operations · Form pipeline · Reader checks |
| Navigation and metadata | Create outlines from headings, named destinations and profile-compatible links. Set title, author, language, creation date and profile-specific associated files at generation. | Format reference · Attachments · Profile checks |
| Encrypt | On main, apply password-based AES-256 and PDF permission flags to supported unsigned PDFs. Reader enforcement of permissions varies. The native mutation paths reject encrypted input. | Encryption and tests · Encryption API |
| Verify provenance | Signed page codes bind an identifier, source digest and page data. Use PAdES validation to check signed PDF byte ranges and use signing evidence to verify an electronic agreement. | Page verification · Code and tests · Agreement verification |
A visible signature, stamp or barcode can be copied as artwork. Treat the signed PDF bytes or the separately verified evidence as authoritative for their respective claims.