ReflowPDF API api.reflowpdf.com/v1

    Quickstart

    From an API key to a PDF in three steps.

    1. Make an API key#

    A free account is enough, with no card. Its first 50 pages a month print without the mark; after that each page carries a small ReflowPDF mark and nothing else changes (X-ReflowPDF-Mark: free-allowance-used). Pro and Max print every page without it: Pricing and limits.

    Sign in at app.reflowpdf.com, open the account menu and choose API keys → New key. The key (rpdf_…) is shown once: keep it in your server's environment, never in a browser or an app you ship.

    export REFLOWPDF_API_KEY="rpdf_…"

    2. Install an SDK (or use curl)#

    npm install @reflowpdf/sdk

    3. Print#

    curl https://api.reflowpdf.com/v1/pdf \
      -H "Authorization: Bearer $REFLOWPDF_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"html": "<h1>Hello, PDF</h1><p>Printed by ReflowPDF.</p>"}' \
      -o hello.pdf

    Fill a ready template the same way, here the gallery's invoice:

    # The template's own sample data is the shape it reads: take it, change what is yours (jq), print.
    curl -s https://api.reflowpdf.com/v1/templates/invoice -H "Authorization: Bearer $REFLOWPDF_API_KEY" \
      | jq '{data: (.sample_data | .invoice.number = "INV-1042" | .buyer.name = "Globex Corporation")}' \
      | curl https://api.reflowpdf.com/v1/templates/invoice/pdf \
          -H "Authorization: Bearer $REFLOWPDF_API_KEY" \
          -H "Content-Type: application/json" \
          -d @- -o INV-1042.pdf

    Next#