Convert any HTML page or URL into a PDF with pixel-accurate fonts, colours, and layout.
import { GeneratePDFs } from '@generatepdfs/node-sdk';
const client = GeneratePDFs.connect('YOUR_API_TOKEN');
// Generate from HTML file with CSS
const pdf = await client.generateFromHtml(
'/path/to/file.html',
'/path/to/file.css'
);
// Or from a URL
const pdf = await client.generateFromUrl('https://example.com');
from generatepdfs import GeneratePDFs
client = GeneratePDFs.connect('YOUR_API_TOKEN')
# Generate from HTML file with CSS
pdf = client.generate_from_html(
'/path/to/file.html',
'/path/to/file.css'
)
# Or from a URL
pdf = client.generate_from_url('https://example.com')
<?php
use GeneratePDFs\GeneratePDFs;
$client = GeneratePDFs::connect('YOUR_API_TOKEN');
// Generate from HTML file with CSS
$pdf = $client->generateFromHtml(
'/path/to/file.html',
'/path/to/file.css'
);
// Or from a URL
$pdf = $client->generateFromUrl('https://example.com');
<?php
use GeneratePDFs\Laravel\Facades\GeneratePDFs;
// Generate from HTML file with CSS
$pdf = GeneratePDFs::generateFromHtml(
'/path/to/file.html',
'/path/to/file.css'
);
// Or from a URL
$pdf = GeneratePDFs::generateFromUrl('https://example.com');
require 'generatepdfs'
client = GeneratePDFs::GeneratePDFs.connect('YOUR_API_TOKEN')
# Generate from HTML file with CSS
pdf = client.generate_from_html(
'/path/to/file.html',
'/path/to/file.css'
)
# Or from a URL
pdf = client.generate_from_url('https://example.com')
Reliable PDF conversion without extra tooling
Upload an HTML file or point to a live page and get a clean, consistent PDF that follows your layout. Use it manually or integrate it with your existing workflow using our API for documents, reports or downloads.
Flexible pricing for real-world workloads
Pick a monthly allowance that suits your needs, with optional on-demand generations when you need extra flexibility.
A simple way to test the API with a small monthly allowance.
Free Free
SignupBuilt for small projects that need reliable monthly PDF generation.
$10 /month /year
SignupIdeal for growing apps with higher volume and consistent workloads.
$29 /month /year
SignupDesigned for high-traffic applications that need serious throughput.
$79 /month /year
SignupHave a different question and can’t find the answer you’re looking for? We'd love to help, reach out to us on Bluesky or send us an email!