Skip to main content
The 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


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