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   2489

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.

Ethereum Services to be Under New Thread

At the moment, the vulnerability has already been fixed, hackers did not have time to use it
05 February 2019   290

Specialists from the blockchain-startup Parity Technologies have discovered a vulnerability in the JSONRPC protocol that threatens the security of the entire Ethereum ecosystem. In particular, MyEtherWallet, MyCrypto and Infura services are under threat of hacking.

At the moment, the problem has already been fixed, the attackers did not have time to use it.

The developers of Parity Technologies recommended that users update the nodes to the new software version in order to reduce the risk of losing access to decentralized applications.

Recall that in January, due to the critical vulnerability in improving the EIP-1283, which allows hackers to steal user funds, the hardfork network was postponed indefinitely
Ethereum Constantinople.