The Gotenberg alternative
with no containers to run
Gotenberg is Chromium and LibreOffice conversion in a Docker image you host, size and harden. Microlink runs the browsers for you, one request per PDF: 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 1cmcURL 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.bodyPHP 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))
}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"
})Why developers switch.
Gotenberg is free software, but you run the fleet. Why teams hand that work to Microlink.
Start free, scale when ready
Free
Pro
- Everything in Free
- Automatic proxy resolution
- Configurable TTL
- Custom HTTP headers
- Custom cache key
- Priority email support
Business & Enterprise
- Everything in Pro, plus:
- Card or invoice, PO number, net 30
- NDA, DPA & service agreement
- Vendor assessments on request
- Same named contact
- Annual billing, 10% discount
Feature by feature,
side by side.
Every Gotenberg cell comes from gotenberg.dev and the Gotenberg repository (v9.12.0).
| Feature | Microlink | Gotenberg |
|---|---|---|
| Free plan Self-hosted only, with no hosted offering. You pay for the servers that run it. | 25 requests/day, renews daily, no credit card | Free, MIT |
| Live URL to PDF | ||
| Word, Excel and PowerPoint URLs to PDF Microlink prints the document through HTML: text, not page layout. LibreOffice converts uploaded files, one at a time per container. | Upload | |
| Screenshot, metadata and markdown from the same API Gotenberg also returns PNG, JPEG and WebP screenshots. | Partial | |
| Raw HTML input HTML and Markdown files are sent in the  request. | - | |
| Header and footer templates Gotenberg takes them as header.html and footer.html files. | - | |
| Watermarks Gotenberg adds them as a stamp. | - | |
| Password protection and encryption | - | |
| PDF/A output PDF/A and PDF/UA, plus digital signatures. | - | |
| Merge PDFs Merge and split as PDF stages. | - | |
| Async with webhooks | - | |
| Private network targets blocked Microlink never renders a private network address. Gotenberg reaches private IPs until --chromium-deny-private-ips is set. | Opt‑in | |
| Runs inside your network With Gotenberg, documents never leave your infrastructure. | - | |
| Open source you can fork Microlink’s core (Metascraper, MQL, Browserless) is MIT. Gotenberg is MIT licensed as a whole on GitHub. | Partial |
When Gotenberg is the better pick.
Very high volume on containers you already run
If your team already runs a container platform, very high volume can cost less on your own nodes than a hosted API billed per request. Count the hours spent sizing, monitoring and hardening it before you decide.Documents that never leave your network
Gotenberg runs where you put it, so contracts, invoices and internal pages are converted without crossing your perimeter. Microlink renders the URLs you send on its own infrastructure.Raw HTML, Markdown and office files
Send HTML or Markdown your app generates, or an office file for LibreOffice, and get a PDF back. Microlink only takes a URL it can reach, with cookies or headers for pages behind a login.Merge, split, encrypt, stamp and sign
PDF stages merge and split files, add passwords and stamps, produce PDF/A and PDF/UA, and sign documents. Microlink has none of these.Headers, footers and webhooks
Chromium conversions take header and footer HTML, and long jobs can report back to a webhook instead of holding the request open.Open source you can audit and fork
MIT licensed, about 13.7k GitHub stars and 100M+ Docker pulls. Read the code, patch it and ship your own build when you need to.
Product Information
Running costs, concurrency, URL safety, office files and when Gotenberg is still the right call.
Is Gotenberg free?
How many PDFs can one Gotenberg container convert at once?
Is it safe to render user URLs with Gotenberg?
Can Microlink convert office files like Gotenberg’s LibreOffice module?
Can I send raw HTML or Markdown to Microlink?
Does Microlink merge, split, encrypt or sign PDFs?
Does Microlink limit how long a document can be?
How do I try Microlink without paying?
Start building
Gotenberg is a trademark of its owner. Microlink is not affiliated with or endorsed by the Gotenberg project. Details about Gotenberg come from its public documentation and repository and may have changed since they were checked.