Convert pdf to png on ubuntu

To convert a pdf document to an png document one can use the terminal.
– Install imagemagick on your system
– Open the folder that holds your pdf document in the terminal
convert -density 150 {filename.pdf} -quality 90 {filename.png}

Each page from the pdf document is now a png file.