# alvarcarto/url-to-pdf-api

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/alvarcarto-url-to-pdf-api).**

7,114 stars · 789 forks · HTML · mit

## Links

- GitHub: https://github.com/alvarcarto/url-to-pdf-api
- awesome-repositories: https://awesome-repositories.com/repository/alvarcarto-url-to-pdf-api.md

## Topics

`chrome` `headless` `headless-chrome` `heroku` `heroku-button` `html` `invoice` `pdf` `puppeteer` `receipt`

## Description

This project is a browser rendering service and headless Chrome PDF generator built on Puppeteer. It functions as a backend tool for converting web pages and raw HTML content into PDF documents and screenshots.

The service distinguishes itself through browser session control, allowing for the injection of session cookies and the configuration of navigation timeouts to handle authenticated pages. It also includes viewport-based layout scaling to adjust browser dimensions and device scale factors during the rendering process.

The broader capability surface covers HTML content export and automated web screenshot capture. Operational stability is supported by a dedicated health check endpoint used to verify the status of the rendering engine.

## Tags

### Content Management & Publishing

- [Web-to-PDF Converters](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing-tools/format-conversion-toolkits/pdf-format-converters/web-to-pdf-converters.md) — Renders web pages and raw HTML content into static PDF documents using a headless browser. ([source](https://cdn.jsdelivr.net/gh/alvarcarto/url-to-pdf-api@master/README.md))
- [HTML to PDF Converters](https://awesome-repositories.com/f/content-management-publishing/html-to-pdf-converters.md) — Converts raw HTML markup and remote URLs into standardized PDF documents.

### Graphics & Multimedia

- [Web Page Screenshot and PDF Tools](https://awesome-repositories.com/f/graphics-multimedia/web-page-media-generation/web-page-screenshot-and-pdf-tools.md) — Provides a backend service for combined screenshot and PDF generation from rendered web content.
- [Web Page Screenshot Tools](https://awesome-repositories.com/f/graphics-multimedia/web-page-screenshot-tools.md) — Generates visual image snapshots of web pages or raw HTML content. ([source](https://cdn.jsdelivr.net/gh/alvarcarto/url-to-pdf-api@master/README.md))

### Web Development

- [Headless Browsers](https://awesome-repositories.com/f/web-development/headless-browsers.md) — Implements a headless browser engine to render web pages and execute JavaScript before conversion to PDF or images.
- [PDF Generators](https://awesome-repositories.com/f/web-development/headless-browsers/pdf-generators.md) — Uses a headless Chrome browser to render web pages and HTML content into PDF documents.
- [Document Stream Transformers](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/request-and-response-transformers/document-stream-transformers.md) — Transforms incoming HTTP requests containing URLs or HTML into binary PDF document streams.
- [Browser Session Managers](https://awesome-repositories.com/f/web-development/web-automation-scraping/web-scraping-automation/browser-automation/browser-session-managers.md) — Controls browser profiles and authenticated sessions to ensure complete page loads before rendering. ([source](https://cdn.jsdelivr.net/gh/alvarcarto/url-to-pdf-api@master/README.md))
- [Viewport Configurations](https://awesome-repositories.com/f/web-development/web-standards/responsive-css-frameworks/viewport-configurations.md) — Provides controls for browser dimensions and device scale factors to manage responsive rendering. ([source](https://cdn.jsdelivr.net/gh/alvarcarto/url-to-pdf-api@master/README.md))

### Security & Cryptography

- [Browser Session Authentication](https://awesome-repositories.com/f/security-cryptography/identity-access-management/authentication-strategies/session-and-credential-handling/session-credential-management/browser-session-authentication.md) — Allows injection of session cookies to authenticate automated browser requests for protected pages.

### Testing & Quality Assurance

- [On-Demand Web Page Screenshot Automations](https://awesome-repositories.com/f/testing-quality-assurance/automation-interaction-tools/on-demand-web-page-screenshot-automations.md) — Captures visual images of web pages at specific screen dimensions for monitoring and audits.

### User Interface & Experience

- [Responsive Layout Scaling](https://awesome-repositories.com/f/user-interface-experience/responsive-layout-scaling.md) — Adjusts virtual browser dimensions and device scale factors to simulate different screen resolutions during capture.
