Skip to main content

One post tagged with "PDF"

View All Tags

Introducing HTML to PDF API: Convert Web Pages to Professional PDFs

· 3 min read

We're excited to announce the launch of our new HTML to PDF API service on BlockEden.xyz! This powerful REST API enables developers to convert web pages into high-fidelity PDF documents with just a simple API call.

HTML to PDF API

What is HTML to PDF API?

HTML to PDF is a powerful API service that converts web pages to PDF documents with high fidelity. It supports customizable options like filename, content disposition, and media type emulation for generating professional-quality PDF files from any accessible URL.

Whether you need to create reports, generate invoices, archive web content, or provide print-friendly versions of your web pages, our HTML to PDF API offers a reliable and straightforward solution.

Key Features

  • High-Fidelity Conversion: Accurately renders web pages as they appear in browsers
  • Customizable Options: Control filename, content disposition, and media type emulation
  • Simple REST API: Easy integration with GET or POST methods
  • Professional Output: Generate publication-ready PDF documents
  • Reliable Service: Built on robust infrastructure with high availability

How It Works

The HTML to PDF API offers two simple methods to convert web pages to PDF documents:

1. GET Method

For simple conversions, you can use a GET request with query parameters:

GET https://api.blockeden.xyz/api/html-to-pdf/{accessKey}?url=https://example.com

Optional parameters include:

  • filename: Custom name for the generated PDF (without extension)
  • disposition: Content-Disposition header value (inline or attachment)
  • emulateMediaType: Media type to emulate (screen or print)

2. POST Method

For more complex requirements, use the POST method with a JSON body:

POST https://api.blockeden.xyz/api/html-to-pdf/{accessKey}

{
"url": "https://example.com",
"filename": "my-document",
"disposition": "attachment",
"emulateMediaType": "print"
}

Use Cases

Our HTML to PDF API is versatile and can be used in numerous scenarios:

  • Document Generation: Create reports, invoices, or receipts from web templates
  • Content Archiving: Preserve web content in a durable, portable format
  • Print-Friendly Versions: Offer PDF downloads of articles or documentation
  • Legal Documentation: Generate contracts or agreements from web forms
  • Email Attachments: Automatically create PDF attachments from dynamic web content

Getting Started

To start using the HTML to PDF API:

  1. Visit our API Marketplace and select HTML to PDF
  2. Create an API key through your BlockEden.xyz dashboard
  3. Integrate the endpoint into your application using our comprehensive documentation
  4. Start converting web pages to professional PDFs!

Pricing

The HTML to PDF API is available at 20,000 CUs / request, making it an affordable solution for your document conversion needs. Our compute unit credit (CUC) system ensures transparent and predictable pricing as your usage scales.

Conclusion

With the addition of HTML to PDF to our API Marketplace, BlockEden.xyz continues to expand its suite of developer tools designed to simplify complex tasks. This new service reflects our ongoing commitment to providing reliable, high-quality APIs that help developers build better applications faster.

We invite you to try our HTML to PDF API today and share your feedback as we continue to enhance and expand our offerings.

Ready to start converting web pages to PDFs? Visit BlockEden.xyz API Marketplace today and create your access key to begin!

For the latest updates and announcements, connect with us on Twitter or join our community on Discord.