Skip to content

The PDFShift alternative
with one flat price per PDF

PDFShift charges a credit for every 5 MB a document weighs. Microlink charges one request per PDF, whatever it weighs: 46,000 PDFs for $49 a month.

The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing' URL with 'pdf' & 'meta' API parameters:

CLI Microlink API example

microlink pdf https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing --format A4 --margin 1cm

cURL Microlink API example

curl -G "https://api.microlink.io" \
  -d "url=https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing" \
  -d "pdf.format=A4" \
  -d "pdf.margin=1cm" \
  -d "meta=false"

JavaScript Microlink API example

import createClient from 'microlink.io'

const microlink = createClient()

const data = await microlink.pdf('https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing', {
  format: "A4",
  margin: "1cm"
})

Python Microlink API example

import requests

url = "https://api.microlink.io/"

querystring = {
    "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing",
    "pdf.format": "A4",
    "pdf.margin": "1cm",
    "meta": "false"
}

response = requests.get(url, params=querystring)

print(response.json())

Ruby Microlink API example

require 'uri'
require 'net/http'

base_url = "https://api.microlink.io/"

params = {
  url: "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing",
  "pdf.format": "A4",
  "pdf.margin": "1cm",
  meta: "false"
}

uri = URI(base_url)
uri.query = URI.encode_www_form(params)

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
response = http.request(request)

puts response.body

PHP Microlink API example

<?php

$baseUrl = "https://api.microlink.io/";

$params = [
    "url" => "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing",
    "pdf.format" => "A4",
    "pdf.margin" => "1cm",
    "meta" => "false"
];

$query = http_build_query($params);
$url = $baseUrl . '?' . $query;

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET"
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #: " . $err;
} else {
    echo $response;
}

Golang Microlink API example

package main

import (
    "fmt"
    "net/http"
    "net/url"
    "io"
)

func main() {
    baseURL := "https://api.microlink.io"

    u, err := url.Parse(baseURL)
    if err != nil {
        panic(err)
    }
    q := u.Query()
    q.Set("url", "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Printing")
    q.Set("pdf.format", "A4")
    q.Set("pdf.margin", "1cm")
    q.Set("meta", "false")
    u.RawQuery = q.Encode()

    req, err := http.NewRequest("GET", u.String(), nil)
    if err != nil {
        panic(err)
    }

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := io.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}

Why developers switch.

Reasons to move PDF generation from PDFShift to Microlink.

A heavy PDF costs the same as a light one
PDFShift counts one credit per 5 MB of output, so a 12 MB report takes 3 credits. On Microlink every PDF is one request, so the bill follows the number of documents, not their weight.
$49 instead of $149 for nearly the same volume
PDFShift Shift 50k is 50,000 credits for $149/month. Microlink Pro is 46,000 PDFs for $49/month, $100 less a month for a similar volume.
Word, Excel and PowerPoint files too
Point Microlink at a .docx, .xlsx or .pptx URL and the same pdf parameter returns a PDF. Microlink converts the document to HTML and prints that, so the PDF keeps its text but not its original page layout. PDFShift’s API reference lists web pages and HTML as sources.
Ads and recognized cookie banners blocked by default
Microlink blocks ads and recognized cookie banners by default, so they stay out of the printed page. PDFShift’s API reference lists no blocking option.
More than PDFs from the same key
The same request can also return a screenshot, metadata or markdown of the page, so a PDF workflow can grow into previews or LLM ingestion without a second vendor.

Nearly the same volume.
$100 less per month.

Microlink bills requests: 46,000 for $49 per month, one per PDF. PDFShift bills credits: 50,000 for $149 per month, one per 5 MB of output.

Microlink

$49per month
46,000 requests/month
  • $1.07 per 1,000 requests
  • One request per PDF, whatever its size
  • Office documents, screenshots and metadata included
  • Free plan: 25 requests/day, renews daily, no credit card
  • No rate limit on paid plans
  • 340+ edge nodes, 99.9% SLA on paid plans
  • Open-source core (MIT)

PDFShift Shift 50k

$149per month
50,000 credits/month
  • $2.98 per 1,000 credits
  • One credit per 5 MB of output
  • Unused credits do not roll over
Price checked on pdfshift.io
Billed annually, Shift 50k is $1,490 a year, about $124 a month. At low volume, PDFShift Starter is $9 a month for 500 credits, and Microlink’s free plan gives 25 requests/day, renews daily, no credit card.

Feature by feature,
side by side.

Every PDFShift cell comes from its pricing page and API reference.

FeatureMicrolinkPDFShift
Free plan25 requests/day, renews daily, no credit card50 credits/month
Live URL to PDF
Paper size, margins, scale and page ranges
Print or screen CSS
Custom cookies and headers
Screenshot, metadata and markdown from the same API
PDFShift has PNG, JPEG and WebP endpoints.
Partial
Raw HTML input-
Header and footer templates-
Watermarks-
Password protection and encryption-
Async with webhooks-
Upload to your own bucket-
Last verified: December 2026. Competitor features from public docs and pricing. A dash marks a feature not offered.

When PDFShift is the better pick.

PDFShift wins on raw HTML input, headers and footers, watermarks and encryption, webhooks and storage targets, a free sandbox and entry price.
  • Raw HTML input

    Send the HTML itself, not a URL. Useful for invoices and reports your app renders on the fly. Microlink only takes a URL it can reach, with cookies or headers for pages behind a login.
  • Headers, footers and page numbers

    Header and footer templates that print the page number and the total page count.
  • Watermarks and encryption

    Watermarks, plus user and owner passwords that can block printing and copying.
  • Webhooks and your own bucket

    Async conversions post to a webhook, and PDFs can go straight to your S3, Google Cloud Storage or R2 bucket.
  • A free sandbox mode

    50 free credits a month, no card, and a sandbox mode that returns watermarked PDFs without spending credits.
  • A lower entry price

    Starter is $9/month for 500 credits. Microlink Pro starts at $49/month for 46,000 requests.

Product Information

Billing units, office files, long documents, migration and when PDFShift is still the right call.

How does PDFShift count credits?

PDFShift’s pricing page says one credit is consumed per document, counted per 5 MB of generated data, so a 12 MB PDF costs 3 credits.
Microlink counts one request per PDF, whatever it weighs, so a report full of photos costs the same as a one-page receipt.

What do 46,000 PDFs a month cost on each?

PDFShift Shift 50k is $149/month for 50,000 credits, $2.98 per 1,000. Microlink Pro is $49/month for 46,000 requests, $1.07 per 1,000.
PDFs over 5 MB widen the gap, since each one takes more than one PDFShift credit.
Yes. Pass the URL of a .docx, .xlsx or .pptx file with pdf=true and Microlink returns a PDF of the document. Microlink converts the document to HTML and prints that, so the PDF keeps its text but not its original page layout.
PDFShift’s API reference lists no office file input.
No. Microlink renders a URL it can reach, so HTML your app generates has to be served at a URL first.
If you only ever convert HTML strings, PDFShift fits that flow better.
No. Microlink exposes paper size, margins, scale, orientation, page ranges and print or screen CSS.
PDFShift documents header and footer templates with page and total page variables. If every PDF needs them, that is a real reason to stay.
On Microlink a very long document can fail to render within the request timeout with an EPDFTOOLARGE error.
The free plan stops at 30 seconds and Pro at 90, so a document that fails on the free plan can still pass on Pro.
Microlink gives you 25 requests/day, renews daily, no credit card, with proxy, headers and ttl, and a 30 second request timeout instead of 90.
PDFShift gives 50 credits a month with files up to 15 MB.

How much work is it to move from PDFShift?

PDFShift takes a POST with a source and options such as format, margin, landscape, pages and use_print. Microlink takes the URL plus pdf.format, pdf.margin, pdf.landscape, pdf.pageRanges and mediaType.
For URL sources, the move is mostly renaming parameters. Start from the PDF guide.

Start building

Turn a web page or office file URL into a PDF, one request each, and add screenshots, metadata or markdown when you need them.
Get your free API key
25 requests/day · Proxy, headers and ttl · No credit card
Trusted with 140M+ requests every month