Tagged in

PDF

Display matplotlib image on HTML page using Django

A lot of times we use matplotlib to plot images and we would like to display them on a HTML page simply for rendering as PDF for download or just for display.

Fortunately this is possible for django backend, here is an example for plotting a horizontal barchart in HTML …

Install pdftk on unbuntu 18.04

PDFTK is a very handy package that handles PDFs. It could open and write to existing PDFs, and a lot of other great things. However, it is missing from the Ubuntu 18 and is very tricky to install on Ubuntu 18 (but works nice and smoothly on Ubuntu 16). This …