PDF

Create high quality PDF from any webpages and HTML using API.

Overview

You may have wanted to generate a PDF file of a web page from your application and share with your users. With SlashApi you can easily generate a PDF from any webpages using a simple API endpoint, just pass the URL, add some options as query parameter and your PDF file is ready.

Getting Started

After you create an account and log in to the dashboard, choose PDF on the collections page. To make PDF API you just need to give a name for your API, click on the submit button and your API is ready.

API Endpoints

URL to PDF

Convert any web URL into PDF

GET
<team>/pdf/<identifier>

Parameters

You can use these parameters as query string parameter.

Parameter Description
url [required] The full URL (including the HTTP & HTTPS Protocol) of the website you want to take screenshot.
format Predefined format size. Available format (Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6)
margin Setting page margin with format (top,right,bottom,left).
background Show background in the resulting PDF.
orientation Setting page orientation.
size Setting the paper size with format (width,height).