some pdf tweaks and refactorings
added debug/info-page to pdf