Fix document margins
fix_document_marginsUse this when an uploaded PDF fails the print check because content is too close to the edge or pages are not A4. mode "shrink" (default) scales the affected pages down slightly and centres them on A4; nothing is lost. mode "crop" keeps pages at 100 % and removes everything inside the margin band, so that content is NOT printed (non-A4 pages are first fitted onto A4). The original upload is kept; calling again with the other mode replaces the earlier fix. If content touches the edge, ask the user which mode they prefer and tell them what changed. Not possible once the letter is paid. Needs the user's account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | shrink = scale pages down slightly, nothing lost; crop = keep 100 % size and cut off everything inside the margin (that content is not printed) | shrink |
| document_id | Yes |