url to
PDF CONVERTER
API
Convert your websites to realistic, high-quality PDF files with Insta-PDF
Insta-PDF API can take URL as input, retrieves the HTML content of the web page and converts it into a print-ready PDF document
Turn URLs to PDF with Insta-PDF API
Browser-based HTML to PDF Engine
Our URL based PDF converter API, supports modern HTML, CSS, and JavaScript.
Asynchronous requests​
Make an asynchronous API request, and get a notification via webhooks when your PDF is done.
Security
Encrypting sensitive data, such as user information or the PDF documents, both in transit and at rest, to protect against unauthorized access.
PDF Customization Options​
- Set PDF page size and margins
- Add headers and footers
- Change the orientation of your pages
- Add watermarks
- Remove elements of the website
SDK support
It does not matter what programming language you are using, we have you covered. Check our collection of libraries that aim to streamline developer experience.
const request = require("request");
const options = {
 method: "POST",
 url: "https://api.insta-pdf.com/v1/convert",
headers: {
  "Content-Type": "application/json",
"Authorization": "Bearer YOUR-API-KEY"
},
body: {
 "page_size": "A4",
 "margin_top": 50px,
 "margin_bottom": 50px
},
json: true
};
request(options, function (error, response, body) {
 if (error) throw new Error(error);
 console.log(body);
});
(POST) https://api.insta-pdf.com/v1/convert | This endpoint is responsible for the PDF conversions. |
---|---|
(GET) https://api.insta-pdf.com/v1/usage | This endpoint will give you a response showing your plan details and usage (tied to current billing cycle) . |
(GET) https://api.insta-pdf.com/v1/list?from=DD-MM-YY&to=DD-MM-YY&limit=100&page=1 | This endpoint lists your created PDFs in the specified time interval. |
page_size | A1/A2/A3/…/Letter/Tabloid/…. |
---|---|
page_width | Page width in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
page_height | Page height in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
margin_top | Top margin in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
margin_bottom | Bottom margin in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
margin_left | Left margin in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
margin_right | Right margin in mm (millimeters), cm (centimeters), in (inches), px (pixels) or pt (points) |
orientation | Sets the orientation of the page to vertical/horizontal |
header_html | HTML code for header |
---|---|
header_text | Text in the header |
header_align | Alignment property of the header text |
header_margin | Margin at the top of the page for the footer placement in mm, cm, in,px or pt |
header_start_at | The page you want start showing the header on |
footer_html | HTML code for footer |
footer_text | Text in the footer |
footer_align | Alignment property of the footer text |
footer_margin | Margin at the bottom of the page for the footer placement in mm, cm, in,px or pt |
footer_start_at | The page you want start showing the footer on |
html | The URL of the website you want to convert to a PDF file |
---|---|
url | The raw HTML code you want to convert to a PDF file |
css | Use custom CSS to style the page, can be a string and a URL |
filename | Choose a name for your PDF file |
no_background | Do not show the background image/color of the website in the PDF file |
no_images | Do not include images of the webpage in the PDF |
no_js | Convert the page with JavaScript switched off |
no_css | Convert the page with CSS switched off |
no_ads | Remove ads |
no_forms | Do not include forms in the PDF |
no_blank_pages | Remove blank pages |
grayscale | Convert to a grayscale PDF |
delay | Enables you to specify a custom delay time (in milliseconds) before the PDF is generated. It could be useful if certain contents of the website appear after the initial page load. |
wm_image | URL of the watermark image |
---|---|
wm_text | Text of the watermark |
wm_font_size | Font size of watermark text (in points) |
wm_font | Font face for the text watermark, for example Ariel |
wm_font_color | Font color of the watermark text |
wm_font_bold | Set to true to make the watermark text bold. |
wm_font_italic | Set to true to make the text style italic. |
wm_x | The horizontal position of the watermark |
wm-y | The vertical position for the watermark |
wm_img_width | Width of the watermark in mm, cm, in,px or pt |
wm_img_height | Height of the watermark in mm, cm, in,px or pt |
wm_opacity | Set the opacity of the watermark Between 0 and 1 (1 means fully opague) |
wm_angle | Angle of rotation between 0 and 360 |
Use cases for HTML to PDF conversion
-
Generating invoices or receipts
Convert HTML invoices or receipts into PDF format for easy storage and printing.
-
Creating proposals
Businesses can use the API to convert their HTML proposals into PDF format for professional presentations to clients.
-
Building reports
Convert data from HTML reports into PDF format for easier sharing and printing.
-
Archiving web pages
Transform important web pages into PDF format.
-
Creating brochures and flyers
Marketing teams can use the API to convert HTML brochures and flyers into PDF format for print and distribution.
-
Generating forms
Transform HTML forms into PDF format to facilitate filling out and submitting.
URL to PDF API Pricing Plans
Basic
1000 API calls-
Raw HTML to PDF conversion
-
URL based PDF conversion
-
Full Customization
-
SYNC/ASYNC requests
-
HTTPS encryption
Standard
5000 API calls-
Raw HTML to PDF conversion
-
URL based PDF conversion
-
Full Customization
-
SYNC/ASYNC requests
-
HTTPS encryption
Pro
10 000 API calls-
Raw HTML to PDF conversion
-
URL based PDF conversion
-
Full Customization
-
SYNC/ASYNC requests
-
HTTPS encryption
Custom
Tailored to your needs-
-
If you want to discuss a custom plan, please send us a message and we'll make you an offer.
Do you have a question?
You might find an answer to it on the FAQ page or on the API Documentation page, but otherwise feel free to contact us, we are here to help!