Refactor exportPdf:
Refactor file name and title detection
Fix printing by disabling updates during jobs

Fix #104