Document Format Conversion
convert_document_formatAccepts a document as base64 or URL and converts between PDF, DOCX, RTF, HTML, and plain text. Preserves formatting fidelity. Useful as a pre-processing step before data extraction on non-standard file types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Original filename with extension (e.g. 'resume.docx'). Defaults to 'resume.txt' if omitted. | |
| outputtype | No | Target format: 'pdf' (default), 'doc', 'docx', 'dot', 'rtf', or 'html'. | |
| resume_text | No | Plain text content of the resume/document. The server encodes it internally. | |
| facedetection | No | Set 'true' to detect and preserve face images during conversion. |