Get unlimited access and stop wasting time with maintaining third party libraries. PDFStack provides you with an extensive and reliable PDF conversion API.
Get a free API key in minutes and try it for yourself.
We believe that developers should focus on their code and therefore provide them tools that are easy to integrate and well maintained.
var myHeaders = new Headers();
myHeaders.append("Authorization", "your_bearer_token");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"source": "https://www.wikipedia.org"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://pdfstack.io/api/convert", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
import json
url = "https://pdfstack.io/api/convert"
payload = json.dumps({
"source": "https://www.wikipedia.org"
})
headers = {
'Authorization': 'your_bearer_token',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pdfstack.io/api/convert',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"source": "https://www.wikipedia.org"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: your_bearer_token',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
require "uri"
require "json"
require "net/http"
url = URI("https://pdfstack.io/api/convert")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "your_bearer_token"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"source": "https://www.wikipedia.org"
})
response = https.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"source\": \"https://www.wikipedia.org\"\n}");
Request request = new Request.Builder()
.url("https://pdfstack.io/api/convert")
.method("POST", body)
.addHeader("Authorization", "your_bearer_token")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://pdfstack.io/api/convert"
method := "POST"
payload := strings.NewReader(`{
"source": "https://www.wikipedia.org"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "your_bearer_token")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
curl --location --request POST 'https://pdfstack.io/api/convert' \
--header 'Authorization: your_bearer_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"source": "https://www.wikipedia.org"
}'
“Easy and developer friendly!"
Sam W."The easiest way to create PDFs."
Paul N."Within minutes we had everything up and running."
Anna B.Sign up for free and get 100 credits and upgrade to a higher plan at any time.
The perfect start, the perfect solution for you.
Our most popular plan. For not just one reason.
The professional level. If you know you know.