• Better Proposals
  • Resumez
  • Payroll CRM
  • Podia
  • Roofstreet

Try and see for yourself

Rely on a leading conversion service.

We are trusted by thousands to quickly convert documents with a high-fidelity result.

  • 100M
    Conversions made
  • 2.5s
    Average conversion time
  • 2 hours
    Average support response
  • 99.99%

Integrate PDFShift in just three lines of code

We believe that developers should focus their time on things that matter, not setting up yet another PDF library. Because we eliminate needless complexity and provide an up-to-date service, you can get up and running with PDFShift in just a couple of minutes.

// Step 1, install PDFShift
npm install pdfshift

// Step 2, import PDFShift
const pdfshift = require('pdfshift')('user_api_key');
const fs = require('fs');

// Step 3, execute
pdfshift.convert('https://en.wikipedia.org/wiki/PDF', {"landscape": false, "use_print": false}).then(function (binary_file) {
fs.writeFile('pdfshift-documentation.pdf', binary_file, "binary", function () {})
}).catch(function({message, code, response, errors = null}) {})
import requests

response = requests.post(
auth=('user_api_key', ''),
json={"source": "https://en.wikipedia.org/wiki/PDF", "landscape": False, "use_print": False}


with open('pdfshift-documentation.pdf', 'wb') as f:

# We also have a package to simplify your work:
# https://pypi.org/project/pdfshift/
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.pdfshift.io/v2/convert/",
CURLOPT_POSTFIELDS => json_encode(array("source" => "https://en.wikipedia.org/wiki/PDF", "landscape" => false, "use_print" => false)),
CURLOPT_HTTPHEADER => array('Content-Type:application/json'),
CURLOPT_USERPWD => 'user_api_key:'

$response = curl_exec($curl);
file_put_contents('pdfhsift-documentation.pdf', $response);

// We also have a package to simplify your work:
// https://packagist.org/packages/pdfshift/pdfshift-php
require 'uri'
require 'net/https'
require 'json' # for hash to_json conversion

uri = URI("https://api.pdfshift.io/v2/convert/")
data = {"source" => "https://www.example.com"}

Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
    request = Net::HTTP::Post.new(uri.request_uri)
    request.body = data.to_json
    request["Content-Type"] = "application/json"
    request.basic_auth 'your_api_key', ''

    response = http.request(request)

    if response.code == '200'
        # Since Ruby 1.9.1 only:
        File.binwrite("result.pdf", response.body)
        # Handle other codes here
        puts "#{response.code} #{response.body}"
import java.io.File;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.time.Duration;
import org.json.JSONObject;

public class Application {

    private static final String API_KEY = "your_api_key";

    public static void main(String... args) throws Exception {
        var jsonObject = new JSONObject();
        jsonObject.put("source", "https://example.com");
        var httpRequest = HttpRequest.newBuilder()
                .header("Content-Type", "application/json")
                .header("Authentication", "Basic " + API_KEY)

        var httpClient = HttpClient.newBuilder()

        var response = httpClient.send(httpRequest, HttpResponse.BodyHandlers.ofInputStream());

        var statusCode = response.statusCode();
        if (statusCode == 200 || statusCode == 201) {
            // Save the file locally
            var targetFile = new File("src/main/resources/targetFile.pdf");
            Files.copy(response.body(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
        } else {
            // error occurred
using System;
using RestSharp;
using Newtonsoft.Json;
using System.IO;
using RestSharp.Authenticators;
using RestSharp.Serialization;
using System.Net.Mail;
using System.Net;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace PDFShiftExample
    class Program
        static void Main(string[] args)
            IRestClient client = new RestClient("https://api.pdfshift.io/v2/convert");
            client.Authenticator = new HttpBasicAuthenticator("your_api_key", "");

            IRestRequest request = new RestRequest(Method.POST);

            var json = new
                source = "https://www.example.com"

            IRestResponse response = client.Execute(request);
            if (!response.IsSuccessful)
                // Check why status is not int 2xx.
                File.WriteAllBytes("result.pdf", response.RawBytes);
package main

import (

func main() {
    API_KEY := "your_api_key"

    message := map[string]interface{}{
        "source":  "https://example.com",

    bytesRepresentation, err := json.Marshal(message)
    if err != nil {

    client := http.Client{}
    request, err := http.NewRequest("POST", "https://api.pdfshift.io/v2/convert", bytes.NewBuffer(bytesRepresentation))
    if err != nil {
    request.Header.Set("Content-Type", "application/json")
    request.Header.Set("Authorization", "Basic " + API_KEY)

    resp, err := client.Do(request)
    if err != nil {

    if resp.StatusCode >= 200 && resp.StatusCode < 300 {
        body, err := ioutil.ReadAll(resp.Body)
        if err != nil {
        // write the response to file
        ioutil.WriteFile("example.pdf", body, 0644)
    } else {
        // An error occurred
        var result map[string]interface{}


curl \
-u 'user_api_key:' \
-d source="https://en.wikipedia.org/wiki/PDF" \
-d landscape="false" \
-d use_print="false" \
https://api.pdfshift.io/v2/convert/ \
-o pdfhsift-documentation.pdf

# That's all!


Parallel conversions

Process multiple documents in parallel to increase conversion speed.

Asynchronous request

Use our powerful webhook system to be notified once a conversion is done.

Advanced Options

Set custom headers and footers with pagination, inject custom CSS and javascript, encrypt your documents and many more!

Raw HTML support

No need to make your private page public. Simply send us your raw HTML data instead and we will convert it.

High-Fidelity PDF

Generate a high-fidelity document, close to your original HTML, in a few seconds.


That's why your documents are not stored on our server (except when explicitly requested) and are not kept for more than 2 days.

They trust us.

See what our users have to say about PDFShift.


Because we believe your usage is specific, we made plans adapted to each specific needs.
Each plan comes with a defined number of conversions. A conversion represents one document converted.


  • 10,000 monthly conversions
  • Up to 10Mb per PDFs


  • 50,000 monthly conversions
  • Up to 25Mb per PDFs


Need to convert more than 50,000 pages?
Contact us and we will create a customized pricing plan tailored to your needs.

Contact us

Contact Our Sales Team

Our team is happy to answer your sales questions.
Fill out the form below and we will be in touch as soon as possible