POST /api/v1/preview.
What preview does
- Always returns a PNG response as JSON (
image_base64) - Applies a watermark
- Scales output to 1200px width while keeping aspect ratio
Notes
output_formatmust be"png"(use/generatefor PDFs).- Preview is ideal for tuning margins, font sizing, and page selection before generating final output.
- If you enable random effects (rotation/variation/indentation) or try less-tested fonts, run preview multiple times to confirm the layout remains within your safe area.