Convert Any URL or Webpage to PDF

Save any webpage as a PDF instantly - just paste a URL and get a pixel perfect PDF in seconds. Supports full page to PDF capture, HTML to PDF conversion, multi-page PDF output, and clean website screenshots. Perfect for developers, teams, and anyone who needs reliable online PDF conversion.

High Quality
Fast Processing
Secure Storage
Easy Integration
How it works

Convert Any URL to PDF in 4 Steps

The entire process from request to downloadable PDF completes in under a few seconds. No browser, no manual steps, no setup beyond your API token.

  1. Step01

    Send your URL

    token, url, file_type=pdf

    Make a simple GET or POST request to the ScreenshotAPI endpoint with your target URL and optional PDF parameters.

  2. Step02

    We render the page

    Full JS execution · custom wait times · auth support

    A headless Chromium instance fetches the full page including JavaScript-rendered content, fonts, and images exactly as a browser would.

  3. Step03

    Apply your settings

    A4 · portrait · block_ads · no_cookie_banners

    Format, orientation, page range, background graphics, ad blocking, and cookie-banner removal are applied before the PDF is compiled.

  4. Step04

    Receive your PDF

    CDN-hosted · secure link · instant download

    Within seconds you receive a URL pointing to your generated PDF, ready to store, email, or deliver to end users.

Average response time under 3 secondsNo browser installation requiredWorks in any language or platform

PDF API Features - Format, Orientation, Page Range, and More

Unlock advanced capabilities to capture, customize, and optimize screenshots and PDFs for diverse use cases

Format

Choose output format options such as PDF/A, standard PDF, or optimized web PDF for smaller file sizes.

Orientation

Select Landscape or Portrait to match the layout needs of your document.

Page Range

Capture specific pages or a full multi-page conversion (e.g., 1–5, all).

Print Background

Option to include or exclude background graphics when rendering for print-like fidelity.

Why an API beats Ctrl+P

URL to PDF API vs Browser Print

Browser "Print → Save as PDF" works for one-off saves. It breaks down the moment you need consistency, scale, or automation.

CapabilityBrowser Print to PDFScreenshotAPI URL to PDF
Automation / scripting
Manual only requires human interaction
Fully programmatic via a single HTTP call
Ad & banner removal
Ads render as part of the page
block_ads flag strips ads before capture
Cookie consent popups
Often captured and pollute the PDF
no_cookie_banners removes consent dialogs automatically
Consistent page format
Varies by browser, OS, and print settings
Deterministic - same output every time
Page size control
Limited to browser print presets
A0–A6, Letter, Legal, Tabloid, custom dimensions
Full-page capture
Clips to viewport in many cases
Captures full scrollable page length
Background graphics
Disabled by default in most browsers
print_background flag gives explicit control
Scalability
One tab = one PDF, manually
Generate thousands of PDFs in parallel

If you need PDFs more than occasionally for automation, document pipelines, or reliable output at scale - a dedicated URL-to-PDF API saves hours of debugging browser quirks and produces documents that look the same every time.

Try for free
Format library

PDF Generation Formats

Explore different PDF page sizes and formats, including ISO (A series), North American, and large formats for accurate document generation. Click on a format to view detailed dimensions, use cases, and size comparisons for optimized PDF export and printing.

A4

A4

ISO
210
Width (mm)
297
Height (mm)
0.06
Area (m²)

Most common paper size for document screenshots, reports, and letters.

LettersReportsFormsInvoices

Integrate the PDF API in Any Language - Node.js, Python, PHP, Go, Ruby, Java

Seamlessly connect with your existing workflows, applications, and platforms using simple APIs and flexible configuration options


const axios = require("axios");

let config = {
	method: "get",
	maxBodyLength: Infinity,
	url: "https://shot.screenshotapi.net/v3/screenshot?token={token}&url=https://apple.com&file_type=pdf&pdf_options%5Bformat%5D)=A4&pdf_options%5Bmedia%5D)=print&pdf_options%5Blandscape%5D)=false&pdf_options%5Bprint_background%5D)=false&pdf_options%5Bpage_range%5D)=2-3",
	headers: { }
};

axios.request(config).then((response) => {
	console.log(JSON.stringify(response.data));
}.catch((error) => {
	console.log(error);
});
Developer guide

PDF Rendering Best Practices

Small parameter choices make a big difference to PDF quality. These tips cover the most common issues developers encounter when converting URLs to PDF at scale.

01

Wait for dynamic content before capturing

If your page loads data asynchronously (charts, tables, images), use a wait_for_selector or delay parameter so the API waits until all content is fully rendered before generating the PDF. Missing charts are the most common PDF quality complaint.

wait_for_selector=.chart-loaded
02

Match the paper format to your content

Wide data tables render badly on A4 portrait. Set landscape=true or switch to Tabloid format for content that's inherently horizontal. For long-form articles, A4 portrait with sensible margins produces the most readable result.

pdf_options[landscape]=true
03

Remove noise before you capture

Ads, cookie consent dialogs, live chat widgets, and sticky headers all pollute PDF output. Use block_ads=true and no_cookie_banners=true. For custom elements, inject a hide_selectors parameter to suppress them before render.

block_ads=true · no_cookie_banners=true
04

Enable background graphics for branded documents

By default, Chromium suppresses background colours and images in print output (matching browser behaviour). If your document relies on coloured sections, gradients, or logo backgrounds, set print_background=true.

pdf_options[print_background]=true
Real-world applications

URL to PDF Use Cases

From automated invoicing to compliance archiving, teams across industries use URL-to-PDF APIs to eliminate manual export work and keep document generation in sync with live data.

Finance & E-commerce
Invoice & Receipt Generation
Render invoice HTML templates directly to PDF on order confirmation. No manual export step just a single API call per transaction.
POST /order/complete → generate PDF → attach to email
Analytics & SaaS
Dashboard & Report Snapshots
Capture live analytics dashboards at scheduled intervals and deliver clean PDF reports to stakeholders who don't have system access.
Nightly cron → render dashboard URL → email PDF digest
Legal & Regulated Industries
Legal & Compliance Archiving
Preserve timestamped, uneditable PDF copies of policy pages, terms of service, and public disclosures for compliance audit trails.
Compliance tool → archive TOS page → store in S3
Media & Research
Content & Article Preservation
Save news articles, blog posts, and research pages as clean, ad-free PDFs. The block_ads flag strips banners before rendering.
Research crawler → URL → clean PDF → knowledge base
Retail & Wholesale
Product Catalogue Export
Convert product listing pages into printable catalogues for sales teams, trade shows, or offline distribution - always up to date.
Category page → A4 PDF → auto-emailed to sales reps
DevOps & Engineering
CI/CD Documentation Builds
Render hosted documentation sites to PDF as part of release pipelines, giving customers downloadable offline reference manuals.
GitHub Action → docs site URL → PDF artifact → GitHub Release

Need a use case not listed here? Talk to us - the API is flexible enough to cover it.

Trusted across industries

Which Industries Use URL to PDF APIs?

Any team that generates documents from web data benefits from programmatic PDF conversion. Here's how different verticals apply it day to day.

Finance & Accounting

Automated invoice and statement delivery

Finance teams use URL-to-PDF APIs to generate client invoices, monthly statements, and tax documents directly from web-based billing systems eliminating manual exports and formatting inconsistencies.

  • Invoice PDFs
  • Bank statements
  • Tax summaries
Legal & Compliance

Verifiable webpage archiving

Law firms and compliance departments capture timestamped PDF records of public-facing policies, competitor claims, and regulatory filings for use as admissible evidence and audit documentation.

  • Terms of service capture
  • Evidence preservation
  • Audit logs
Marketing & Agencies

PDF reports and client deliverables

Digital agencies convert live campaign dashboards and analytics pages into branded PDF reports for client delivery keeping data current without rebuilding documents in InDesign.

  • SEO reports
  • Ad performance PDFs
  • Monthly summaries
Healthcare & Pharma

Regulatory document archiving

Healthcare organisations archive product information pages, drug approval notices, and clinical trial registrations as PDFs to meet regulatory retention requirements.

  • Drug information sheets
  • Compliance records
  • Clinical PDFs
Education & Research

Content preservation at scale

Research institutions and EdTech platforms preserve academic resources, course pages, and citation sources as offline PDFs, ensuring content remains accessible regardless of link rot.

  • Research archiving
  • Course materials
  • Citation backups
E-commerce & Retail

Printable catalogues and order documents

Retailers convert product pages and category listings into printable catalogues for wholesale buyers, trade events, and sales teams who need offline reference materials.

  • Product catalogues
  • Order confirmations
  • Packing slips

Don't see your industry? The API is flexible enough to fit any web-to-document workflow.

Frequently Asked Questions

URL to PDF - Developer FAQ

Technical questions about authentication, rendering, formats, and limits.