QA teams need evidence. When a bug is filed, you need a snapshot of exactly what the page looked like. When a regression is caught, you need before-and-after proof. Pretty PDF captures page states as professional PDFs — and the API lets you automate it in your CI/CD pipeline.
API access on Pro+ ($12/mo). Free tier: 3 PDFs/month.
Capture webpage states as reliable PDF evidence for every stage of your testing workflow.
Capture the exact page state when filing bug reports. The PDF includes the URL, timestamp, and full page content — a permanent record of what the reporter saw, not a lossy screenshot that loses text selection and accessibility.
Automate PDF generation before and after deployments to create comparison artifacts. When a visual regression is detected, the before-and-after PDFs provide clear evidence of what changed and when it changed.
Generate PDF reports from test result dashboards for stakeholder review. Convert CI/CD dashboards, coverage reports, and test summaries into shareable documents that non-technical stakeholders can read without needing access to your tooling.
Regulatory requirements often demand documented UI states. PDFs are more reliable than screenshots — they are searchable, timestamped, and preserve text fidelity. Meet SOC 2, HIPAA, and GDPR documentation requirements with archival-quality PDF evidence.
Capture page rendering evidence across different environments. Document how your application appears in Chrome, Firefox, and Safari by generating PDFs from each browser's rendered output, creating a permanent cross-browser compatibility record.
The Pretty PDF API provides two endpoints for programmatic PDF generation: POST /v1/generate accepts raw HTML content, and POST /v1/generate/url accepts a URL and fetches the page server-side. Both return a professionally formatted PDF with your chosen template applied.
Authentication uses an API key passed via the X-API-Key header. API access is available on Pro+ plans, which include 200 API requests per month. Rate limits are applied per-minute and communicated via response headers so your automation can implement backoff logic.
The API integrates naturally into CI/CD pipelines and automated workflows:
Here is an example using curl to capture a page as a PDF test artifact:
curl -X POST https://api.prettypdfprinter.com/v1/generate/url \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://staging.yourapp.com/dashboard",
"template": "clean",
"page_size": "A4"
}' \
--output "test-artifacts/dashboard-$(date +%Y%m%d).pdf"
The API returns the PDF binary directly in the response body. Store it as a build artifact, attach it to a Jira ticket, or commit it to a test evidence repository. Every PDF includes the source URL and generation timestamp in its metadata.
From manual capture during development to fully automated PDF generation in production.
One-click PDF from any page during development. Browse to localhost, staging, or production, click the extension icon, and get a clean PDF instantly. No configuration, no setup, no command-line required.
REST endpoints for programmatic PDF generation. POST a URL or raw HTML and receive a formatted PDF. Integrate into scripts, pipelines, webhooks, and internal tooling with any language that makes HTTP requests.
Ideal for developer docs and code-heavy content. The Dark Mode template provides a dark background with high-contrast syntax coloring, mirroring the environment developers work in. Perfect for API documentation, code reviews, and technical specifications.
Monospace fonts (JetBrains Mono embedded), syntax-aware styling, and proper line wrapping. Code blocks in the PDF look as good as they do in your IDE. Long lines wrap cleanly instead of being clipped at the page margin.
From API key to test artifact in minutes.
Sign up for a Pro+ plan and generate an API key from your dashboard. The key authenticates all API requests via the X-API-Key header.
Send a POST request to /v1/generate/url with a URL, or to /v1/generate with raw HTML. Include your preferred template and page size in the request body.
The API returns the PDF binary in the response body. Professional formatting is applied automatically — content extraction, template styling, and embedded fonts are all handled server-side.
Save the PDF as a CI/CD build artifact, attach it to a bug ticket, or commit it to your test evidence repository. Each PDF includes source URL and timestamp metadata.
API access on Pro+ plans. Free tier includes 3 PDFs per month with all templates.
Automate PDF Generation for Your Team