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   3100

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.

Cinnamon 4.2 to be Available

A new release of Cinnamon will be offered in the Linux Mint 19.2 distribution, which is scheduled for release in the nearest future
01 July 2019   291

After nine months of development, a release of the Cinnamon 4.2 user environment has been formed, within which the Linux Mint distribution developer community is developing fork of the GNOME Shell shell, Nautilus file manager and window manager Mutter, aimed at providing the classic GNOME 2 environment with support for successful interaction elements from GNOME Shell . Cinnamon relies on GNOME components, but these components are shipped as a periodically synchronized fork, not bound by external dependencies to GNOME.

A new release of Cinnamon will be offered in the Linux Mint 19.2 distribution, which is scheduled for release in the coming months. In the near future, packages will be prepared that can be installed in the Linux Mint and Ubuntu from the PPA-repository, without waiting for the new version of Linux Mint.

These are main features:

  • New widgets for creating configurators, simplifying the writing of configuration dialogs and making their design more complete and consistent with the Cinnamon interface was added
  • The search bar is moved to the top in MintMenu, .
  • The Nemo file manager simplifies the process of sharing directories with Samba.
  • Some changes are ported to the Muffin window manager from the Metacity window manager developed by the GNOME project.
  • An applet for printing has been added to the main composition, which is now launched by default.
  • Some internal components were reviewed and simplified, such as DocInfo (processing of recently opened documents) and AppSys (parsing application metadata, identifying application icons, defining entries for menus, etc.)

Get more info at GitHub and Linux Mint blog.