Added a pdf target to generate the .pdf file and turned all target into pdf and view targets