Developer notes · Sebastian Krosic
I'm Sebastian Krosic. I write about cloud services, useful APIs and the code that connects them. Explore hands-on tutorials, one problem at a time.
Browse articles ↗The video is exported. The proposal is ready. FileFerry helps you get the finished files into someone else’s hands with a download link you can share.
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.
...
In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response.
After receiving task identifier you need to check task status by calling GetConversionTaskStatus 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 GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the C# implementation below.
...
In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response.
After receiving task identifier you need to check task status by calling GetConversionTaskStatus 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 GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the Go Lang implementation below.
...
In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response.
After receiving task identifier you need to check task status by calling GetConversionTaskStatus 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 GetConversionTaskStatus method you can call DownloadResult method to download final image. We have used Apache HTTP Client libraries in this tutorial. You can add dependencies below in your pom.xml file.
...
In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response.
After receiving task identifier you need to check task status by calling GetConversionTaskStatus 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 GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the Python implementation below.
...