Skip to content

The DocRaptor alternative
that renders the page a browser sees

DocRaptor prints with Prince, a print engine where JavaScript is opt‑in. Microlink renders the live page in Chromium, scripts included: 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 DocRaptor to Microlink.

JavaScript runs before the page prints
Microlink loads the URL in Chromium with JavaScript on, so client-rendered apps, charts and dashboards print with their data loaded, and mediaType=screen keeps the on-screen layout. DocRaptor uses Prince, a print engine where JavaScript is opt‑in, built for documents written for print.
$49 instead of $1,000 for more documents
DocRaptor Silver is 40,000 documents for $1,000/month. Microlink Pro is 46,000 PDFs for $49/month: 6,000 more documents for $951 less per month.
$1.07 per 1,000 PDFs, not $25.00
Both bill one flat price per document, whatever it weighs. At those volumes a DocRaptor document costs about 23.4× more than a Microlink one.
Word, Excel and PowerPoint URLs too
Point Microlink at a .docx, .xlsx or .pptx URL and the same pdf parameter returns a PDF of the document, with no conversion step on your side. Microlink converts the document to HTML and prints that, so the PDF keeps its text but not its original page layout.
Screenshots and markdown, which DocRaptor does not make
DocRaptor returns PDF and Excel files. The same Microlink request can also return a screenshot, metadata or markdown of the page, and an MCP server exposes it to AI agents.

More documents.
$951 less per month.

Both bill one flat price per document. Microlink: 46,000 for $49 per month. DocRaptor Silver: 40,000 for $1,000 per month.

Microlink

$49per month
46,000 requests/month
  • $1.07 per 1,000 requests
  • Chromium with JavaScript on by default
  • 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)

DocRaptor Silver

$1,000per month
40,000 documents/month
  • $25 per 1,000 documents
  • Prince print engine, JavaScript opt‑in
  • 1 minute sync timeout, 10 minutes async
  • Monthly plans only
Price checked on docraptor.com
For smaller volumes, DocRaptor Max is $149 for 5,000 documents. Microlink Pro covers that volume for $49.

Feature by feature,
side by side.

Every DocRaptor cell comes from docraptor.com and its pricing page.

FeatureMicrolinkDocRaptor
Free plan25 requests/day, renews daily, no credit card5 documents/month
Live URL to PDF
Paper size, margins, scale and page ranges
DocRaptor sets page size in CSS, not API parameters.
Partial
Screenshot, metadata and markdown from the same API
DocRaptor outputs XLS and XLSX, but no screenshots or markdown.
-
Raw HTML input-
Header and footer templates
DocRaptor writes them in CSS paged media.
-
Password protection and encryption-
Async with webhooks-
Last verified: December 2026. Competitor features from public docs and pricing. A dash marks a feature not offered.

When DocRaptor is the better pick.

DocRaptor wins on print typography, encryption, compliance, raw HTML input, Excel output and async delivery.
  • Print typography with CSS paged media

    Prince handles running headers and footers, page numbers and tables of contents from CSS. For books, reports and contracts written for print, that layout control is hard to match.
  • Encryption and print restrictions

    Encrypt the output, set user and owner passwords, and disallow printing. Microlink returns the PDF as Chromium prints it.
  • SOC 2, HIPAA and GDPR

    DocRaptor lists SOC 2, HIPAA and GDPR compliance and a 99.99% uptime guarantee.
  • Raw HTML input

    Send the HTML itself, not a URL. Useful for invoices and statements your app renders on the fly. Microlink only takes a URL it can reach, with cookies or headers for pages behind a login.
  • Excel output and hosted documents

    XLS and XLSX output from the same API, and hosted documents.
  • Async jobs with callbacks

    Long documents run async for up to 10 minutes and call your URL when they finish.

Product Information

Rendering engines, JavaScript, per-document price, migration and when DocRaptor is still the right call.

Does DocRaptor run JavaScript?

Only when you turn it on. DocRaptor renders with Prince, a print engine where JavaScript is opt‑in.
Microlink loads the page in Chromium with JavaScript on by default, and can click, inject CSS or JS and wait for a selector before it prints.

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

DocRaptor Silver is $1,000/month for 40,000 documents, $25.00 per 1,000. Microlink Pro is $49/month for 46,000 requests, $1.07 per 1,000.
Both charge one flat price per document, so the gap holds whatever the PDFs weigh.

What about lower volumes?

DocRaptor Basic is $15/month for 125 documents ($120.00 per 1,000, $0.12 each after that), and Max is $149/month for 5,000 ($29.80 per 1,000, $0.03 each after that).
Microlink Pro starts at $49/month for 46,000 requests, and its free plan gives 25 requests/day, renews daily, no credit card.
Often not. DocRaptor supports CSS paged media through Prince: running headers and footers, page numbers and tables of contents.
Microlink exposes paper size, margins, scale, orientation, page ranges and print or screen CSS, with no header or footer templates. Microlink fits when the source is a live web page.
No. Microlink renders a URL it can reach, so HTML your app generates has to be served at a URL first.
If every document starts as an HTML string, DocRaptor fits that flow better.
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.
DocRaptor gives 5 documents a month, plus unlimited watermarked test documents with its public test key.

How much work is it to move from DocRaptor?

For URL sources, send the same URL to Microlink with pdf=true and set paper size and margins with pdf.format and pdf.margin.
Layout that lives in CSS paged media rules, such as running headers or a table of contents, will not carry over, so check those documents first. Start from the PDF guide.

Start building

Print a live URL or office document to PDF in Chromium, 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