DocRaptor uses the Prince rendering engine, which has limited CSS support compared to a real browser. PixDoc uses Chromium for identical rendering to what you see in Chrome, plus built-in screenshots and OG images.
| Feature | PixDoc | DocRaptor |
|---|---|---|
| Setup | API key, one HTTP call | API key, HTTP call |
| Rendering Engine | Chromium (what users see) | Prince (proprietary engine) |
| CSS Support | Full CSS3, flexbox, grid, variables | Good CSS3, limited flexbox/grid |
| Scaling | Flat-rate, auto-scales | Per-document pricing |
| Templates | Built-in template engine with variables | No template engine |
| Screenshots | Built-in endpoint for PNG/JPEG/WebP | PDF only |
| OG Images | Dedicated OG image endpoint | Not available |
| Pricing | Flat $29/mo for 5,000 renders | $0.12/doc ($600 for 5,000) |
See how much simpler it is to generate a PDF with PixDoc.
const DocRaptor = require("docraptor");
const client = new DocRaptor.DocApi();
client.setApiKey("YOUR_API_KEY");
const response = await client.createDoc({
test: false,
type: "pdf",
document_content: "<h1>Invoice #1042</h1>",
name: "invoice.pdf",
prince_options: {
media: "print",
baseurl: "https://example.com",
},
});const res = await fetch("https://pixdoc.dev/api/v1/pdf", {
method: "POST",
headers: {
Authorization: "Bearer pd_live_...",
"Content-Type": "application/json",
},
body: JSON.stringify({ html: "<h1>Invoice #1042</h1>" }),
});
const pdf = await res.arrayBuffer();Start generating PDFs, screenshots, and OG images in minutes. No browser management, no infrastructure, no per-document fees.