Authentication is done by simply passing apiKey parameter to the request, using GET or POST method. You will get the apiKey parameter to your email after the registration.

Note that your "apiKey" is private information, so don't expose it publicly!

A simple example could be like this:{your-api-key}


Note that parameters should be URL encoded when sending a GET request.
htmlstringHTML code or website URL you want to generaterequired
apiKeystringYour api key which you will get after registration, and can find in a dashboardrequired
callBackUrlstringGenerates document in a background and sends result in your callback url.

We will send generated pdf document (encoded with base64) to your provided callback url in this structure: {"document": "..."}
statestringThis is custom parameter provided by the user which will be sent to the callBackUrl when document is generated.null
landscapebooleanActivates landscape modefalse
formatstringFormat of the document, can have one of values:
Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6
widthintegerCustom width of the pdf size (use in conjunction with height parameter)null
heightintegerCustom height of the pdf size (use in conjunction with width parameter)null
integerEmpty spaces between the outer and the beginning of the content (integer value which is equal to pixels)0
filenamestringFilename header will be returnednull
waitForintegerParameter to wait for some time (in seconds) before generate the pdf document. It is useful if you have some javascript code running in the background after page was loaded. Available values from 0 to 10.0
mediastringUse value to generate pdf using print mode styles, can have one of values: print, screenscreen
scalenumberDefines the scale of the pdf document content. Scale range is from 0.1 to 21
stringParameter to provide header / footer of the page. HTML code should be provided and used in conjunction with marginTop / marginBottom to be visiblenull


We support fonts listed bellow.

As an alternative way, you can use any font you want using Google fonts or Web fonts.
Andale MonoComic Sans MSNotoSansVerdana
ArialCourier NewNotoSerifWebdings
Arial BlackGeorgiaTahoma
Arial NarrowImpactTimes New Roman
Arial UnicodeMicrosoft Sans SerifTrebuchet MS

Page breaks

A HTML code example if you want to force a page break at a certain point in an HTML document:

        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>Paginated HTML</title>
            page-break-after: always; 
            page-break-inside: avoid; 
        <div class="page">
            <h1>This is Page 1</h1>
        <div class="page">
            <h1>This is Page 2</h1>
        <div class="page">
            <h1>This is Page 3</h1>