edit.run() method fills PDF forms and modifies DOCX documents programmatically. You provide instructions describing what to fill, and Edit populates the document.
Basic Usage
Method Signature
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_url | str | Yes | File ID (reducto://...) or URL of the document to edit |
edit_instructions | str | Yes | Natural language instructions describing how to fill the form |
edit_options | dict | None | No | Edit options (color, overflow pages) |
form_schema | list | None | No | Explicit form schema for structured filling |
priority | bool | None | No | Request priority processing |
Edit Instructions
Provide natural language instructions describing what to fill:Form Schema
For more control, provide an explicit form schema:Edit Options
Customize edit behavior:Response Structure
Error Handling
Complete Example
Best Practices
Clear Instructions
Write clear, specific instructions about which fields to fill and with what values.
Use Form Schema
For precise control, use
form_schema to specify exact field mappings.Next Steps
- Learn about form schema design
- Explore the async client for concurrent processing
- Check out the edit overview for more details