proper ignore intellij idea artifacts; ignore .project file (GitEye)
refactored toHtml and toPdf conversion to work in chain