file_download
Uploading…
Done!
Error!.

Print a URL

      curl http://paged.press \
        --header "Content-Type:application/json" \
        --data '{"url": "https://s3.amazonaws.com/pagedmedia/samples/text.html"}' \
        > out.pdf
      

Print a local file

      curl http://paged.press \
        --header "Content-Type:text/plain" \
        --data-binary "@text.html" > out.pdf
      

Request a print with "fetch" in JavaScript

        let file = await fetch('http://paged.press', {
            method: 'POST',
            body: JSON.stringify({
              url: "https://s3.amazonaws.com/pagedmedia/samples/text.html"
              // html: "..."
            }),
            headers: {
              'Content-Type': 'application/json',
            },
          })
          .then(r => r.blob());
      
- Close -