Cheapest and Reliable way of rendering HTML into PDF format

One of the necessary task in working with web pages is saving these pages in PDF format. We call it as html rendering. Since web pages may contain texts, images, embedded fonts, hyperlinks, signatures etc, a reliable renderer must maintain layout in PDF format. Also a renderer shall convert a large number of web pages at once. Web Renderer (WR) is a cloud service allows you to successfully, quickly and easily render your HTML documents into the PDF document or PNG image. Personally I’ve been actively using it for more than 10 years, thanks to reliability of service. WR provides both synchronous and asynchronous methods to developers. I strongly suggest using asynchronous approach due to nature of conversion lifecycle and to bypass connection timeout limitation of gateway platform. ...

2 min · Sebastian Krosic

How to Convert HTML to PDF by Using C#

In this tutorial we will cover how to implement asynchronous approach of Web Renderer. You only need to send HTML content to SubmitPDFFromHTMLTask or SubmitImageFromHTMLTask API methods to receive task identifier as response. There is also SubmitPDFFromUrlTask and SubmitImageFromUrlTask methods to render PDF or Image from public Web Uri. After receiving task identifier you need to check task status by calling GetRenderingTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetRenderingTaskStatus method you can call DownloadResult method to download final file. You can use the C# implementation below. ...

2 min · Sebastian Krosic

How to Convert HTML to PDF by Using Go Lang

In this tutorial we will cover how to implement asynchronous approach of Web Renderer. You only need to send HTML content to SubmitPDFFromHTMLTask or SubmitImageFromHTMLTask API methods to receive task identifier as response. There is also SubmitPDFFromUrlTask and SubmitImageFromUrlTask methods to render PDF or Image from public Web Uri. After receiving task identifier you need to check task status by calling GetRenderingTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetRenderingTaskStatus method you can call DownloadResult method to download final file. You can use the Go Lang implementation below. ...

4 min · Sebastian Krosic

How to Convert HTML to PDF by Using Java

In this tutorial we will cover how to implement asynchronous approach of Web Renderer. You only need to send HTML content to SubmitPDFFromHTMLTask or SubmitImageFromHTMLTask API methods to receive task identifier as response. There is also SubmitPDFFromUrlTask and SubmitImageFromUrlTask methods to render PDF or Image from public Web Uri. After receiving task identifier you need to check task status by calling GetRenderingTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetRenderingTaskStatus method you can call DownloadResult method to download final file. We have used Apache HTTP Client libraries in this tutorial. You can add dependencies below in your pom.xml file. ...

3 min · Sebastian Krosic

How to Convert HTML to PDF by Using Python

In this tutorial we will cover how to implement asynchronous approach of Web Renderer. You only need to send HTML content to SubmitPDFFromHTMLTask or SubmitImageFromHTMLTask API methods to receive task identifier as response. There is also SubmitPDFFromUrlTask and SubmitImageFromUrlTask methods to render PDF or Image from public Web Uri. After receiving task identifier you need to check task status by calling GetRenderingTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetRenderingTaskStatus method you can call DownloadResult method to download final file. You can use the Python implementation below. ...

2 min · Sebastian Krosic

How to Convert HTML to PDF by Using Visual Basic

In this tutorial we will cover how to implement asynchronous approach of Web Renderer. You only need to send HTML content to SubmitPDFFromHTMLTask or SubmitImageFromHTMLTask API methods to receive task identifier as response. There is also SubmitPDFFromUrlTask and SubmitImageFromUrlTask methods to render PDF or Image from public Web Uri. After receiving task identifier you need to check task status by calling GetRenderingTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetRenderingTaskStatus method you can call DownloadResult method to download final file. You can use the Visual Basic implementation below. ...

2 min · Sebastian Krosic