app like that
pdfg
pdfg

pdtfg is a managed API service for converting HTML to PDF. It offers serverless architecture, easy integration with various programming languages, and supports asset management and privacy. Pay-as-you-go pricing starts at $0.02 per PDF.

Features

No Infrastructure, Just API

Use API without the need to build and manage your own servers.

Fast and Scalable

Powered by a serverless architecture, ensures a fast and scalable PDF generation, even at high volumes.

Render with Headless Browser

Utilizes a headless browser to ensure your HTML is rendered accurately without visual differences.

Preview Mode for Developers

During development, use the preview mode to view the latest PDF in real-time.

Integration with Your Language and Framework

Compatible with any programming language and framework, provides smooth HTML to PDF conversion across various technologies.

Built-in Fonts

Includes a diverse selection of built-in fonts, supporting multiple languages.

Manage Assets

No need for storage of assets, upload your images, CSS, fonts, etc., through the dashboard and reference them efficiently.

Privacy

Submitted HTML is not stored, maintaining privacy and data security.

Pay as You Go

Pay only for what you use, with prices as low as $0.002 per PDF.

HTML to PDF Conversion

pdfg provides an API service that converts HTML content into PDF using a serverless architecture. This ensures a low-cost and scalable environment for generating PDFs.

API Access

Access to pdfg's services is provided through an API, allowing users to integrate PDF generation into their applications efficiently.

Multi-Language Code Samples

pdfg offers sample code in various programming languages such as React, Vue.js, Jinja2 (Python), ERB (Ruby), Blade (PHP), Thymeleaf (Java), and Go to help users quickly implement the service into their projects.

HTML to PDF Conversion

Allows you to convert HTML content to a PDF document by sending a JSON payload with the HTML content and desired PDF generation options.

PDF Options Customization

Provides various settings for PDF generation, such as displaying headers and footers, choosing paper format, and customizing footer templates.

Preview Mode

An optional feature that adds a watermark to the PDF and does not count towards API usage, useful for development and testing.

Built-in Fonts

Provides a wide selection of fonts primarily centered around the Noto font family. Each font typically comes with 'Bold 600' and 'Regular 400' styles.

Supported Languages

Supports a variety of languages across different regions, including European, Cyrillic, and East Asian languages.

Custom Font Support

Allows users to add and specify custom fonts that aren’t included by uploading the font and specifying it in HTML.

Upload from Dashboard

Allows uploading image files directly from the dashboard and referencing them in HTML. This is suitable for fixed images in PDFs, like logos, and supports reuse in different PDF generations. It doesn’t support subdirectory paths.

External Image References

Enables direct reference to images that are already hosted on the internet. This method bypasses the need to upload images manually to the dashboard by using URLs.

Base64 Encoding

Allows embedding images directly within HTML by using base64 encoding. This method eliminates the need for external image references and ensures images are always available.

Upload from Dashboard

You can upload CSS files directly from the dashboard, which are then available for reference in your HTML. This allows for centralized management of style sheets within the platform.

External CSS References

Allows direct reference to external CSS files hosted on the internet, such as CDNs. This can streamline access to popular style libraries but comes with risks like increased load time and potential CDN issues.

PDF Size Specification

Allows setting the PDF size using either the 'format' property or 'width' and 'height' properties in the 'pdfOptions' object. This feature is useful for defining precise dimensions for generated PDFs.

Real-time Preview

Generated PDFs are instantly reflected in the preview screen, allowing for immediate feedback during development.

Free for Development

API requests with 'preview: true' are not counted towards your usage quota, enabling cost-free testing and development.

React Component Conversion

Allows you to create React components using JSX/TSX and convert them to HTML strings using ReactDOMServer.renderToString().

PDF Conversion API

Provides an API to send generated HTML strings to be converted into PDFs, making integration with React seamless.

Vue.js Integration

Allows the use of Vue.js server-side rendering to generate HTML strings. These strings can then be converted into PDF by using the pdfg's API.

PDF Conversion API

Send HTML strings generated from Vue.js components to the pdfg API for conversion to PDF format.

Pricing Plans

Usage-Based

$0.002
per PDF generation