Upload a PDF
upload_documentUse this when the user already has a PDF (public https URL or base64) that should be printed and posted. Stores the file in the user's account, runs the print check (A4, free margins) and returns document_id for create_letter. If the check fails, call fix_document_margins or ask the user for a corrected file. For a file on the user's own device, use create_upload_link instead. Sends nothing. Needs the user's account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_url | No | ||
| file_name | No | ||
| pdf_base64 | No | The PDF as base64, for files up to about 3 MB. Larger files: pass pdf_url, or use create_upload_link. |