How to convert URL to PDF?

Overview of a simple API that allows you to convert any webpage to a PDF document
11 October 2017   1846

PDFs can be generated in many ways, but one of them is to convert HTML+CSS content to a PDF. The URL to PDF Microservice just does that. This microservice allows you to render to PDF receipts, invoices, or any other content. 

Features

So, according to the developers, main advantages of this product are:

  • Rendered with Headless Chrome, using Puppeteer. The PDFs should match to the ones generated with a desktop Chrome.
  • Sensible defaults but everything is configurable.
  • Single-page app (SPA) support. Waits until all network requests are finished before rendering. A feature which even most of the paid services don't have.
  • Easy deployment to Heroku. We love Lambda but...Deploy to Heroku button.
  • Renders lazy loaded elements. (scrollPage option)
  • Supports optional x-api-key authentication. (API_TOKENS env var)

Here is an example of usage. 

Scheme of work
Scheme of work

Developers warn that you shouldn't serve this API publicly in the internet unless you are aware of the risks. It allows API users to run any JavaScript code inside a Chrome in the server. It's fairly easy to expose content of files in the server. You have been warned!

Learn more at GitHub.

BIF-2018 to be Held This Week

Representatives of the IT community will gather again in the Belgorod Philharmonic to discuss prospects for the development of the IT industry and modern trends in digital solutions
10 September 2018   365

On September 15, Belgorod will host the second IT-forum, which will bring together more than a thousand participants from different regions of the country. As in the past year, the central part of the event will be held in the Belgorod Philharmonic.

BIF2017BIF-2017

The primary goal of the forum is to show that it is possible to work in our region and at the same time create products that will be relevant all over the world. And every year it becomes easier. In IT there are no boundaries, they exist only in the minds, but these borders can also be erased, and this is how the forum helps. At such events, teams from different cities are formed and they can create joint products.

 

Yevgeny Miroshnikov

Head of the department of information technologies and communications of the regional governor's administration

The educational program has changed this year regarding the format of the presentation and the time of the speeches. Participants now can dive into the topic in a shorter time. The program is almost formed - representatives of VKontakte, GetTaxi, Sberbank-Technologies, Alfa-Bank, Dodo Pizza, Internet Initiatives Development Fund and many other companies will make presentations.

Last year, the forum participants wondered why there was no design course. Indeed, there were only a couple of reports from designers in the digital section. We heed the wishes of the participants and this year we are preparing a full-fledged direction in design, inviting experts working on projects in Artemiy Lebedev's studio, Alfa Bank and other top technological companies.

 

Dmitry Zadochin

Head of the IT Development Center of the Belgorod Informational Fund

In addition to design, the flexible methodologies of project management - Agile and Scrum, will also be discussed in a separate area. For civil servants, There is also a separate section for civil servants dedicated to smart cities.

There is today much talk about smart cities and how information technologies change different spheres of life. At the same time, "smart city" is a collective concept, because there is no clear definition of what it is. At a particular section of the Smart City Day, we'll talk about what technologies help make the life of the city better. The main areas will be health, transportation, and culture.

 

Yevgeny Miroshnikov

Head of the department of information technologies and communications of the regional governor's administration

Yevgeny also added that there is an ambitious goal regarding smart roads on the state level - the number of road deaths must be zero. The forum is planned to hold a council under the governor for innovative technological development, where application solutions will be presented to make the roads safe. There are already unique developments in Belgorod that will soon be announced.

After the completion of the educational program for the forum participants will perform a concert orchestra of wind instruments under the leadership of Yuri Merkulov. And there will be an afterparty in one of the city’s restaurants after the symphony concert.

The event will begin at 10:00 with a panel discussion, after which the speeches will start in five sections.

More information:

  • Website
  • ‎Vkontakte