Use cases
Where companies use an HTML to PDF and screenshot API, and the settings that suit each case.
Tax invoices
Render the invoice from the same HTML template your application already uses, with the ZATCA QR code as an embedded image. format: "A4", margin: "15mm", a footer with {{page}} and {{total}}. See ZATCA QR codes.
Bank and wallet statements
Long transaction tables across many pages: put the column titles in <thead>, send use_print: true so they repeat on every page, and keep rows whole with tr { break-inside: avoid; }. Customer data stays in Saudi Arabia during rendering and is not stored.
Contracts and agreements
Bilingual Arabic and English documents in two columns or two sections. Use Amiri or Noto Naskh Arabic for the Arabic text, set dir per section, and add a header with the contract number.
KYB and merchant onboarding records
Keep a dated record of a merchant's website at the moment of onboarding or review: a full_page screenshot with block_cookie_banners, or a PDF of the page with raise_for_status. Store the file with the time and address on your side.
Fraud and dispute evidence
Capture a suspicious page before it changes. Use format=png for exact pixels, and dark_mode or a specific user_agent if the page behaves differently for different visitors.
Reports and dashboards
Export a dashboard as PDF for management or regulators. Wait for charts with wait_for or wait_for_selector, and use landscape for wide tables.
Receipts and tickets
Small documents at scale: a custom format such as 80mmx200mm for receipt printers, or PNG for sending by chat.
Previews and thumbnails
Images of documents and pages for lists and search results: a small viewport_width, format=webp and image_quality=70.