Revert "Basic version of PDF file export uploaded"

This reverts commit f1233f48be598e6fdff070679b8b98b625730275, reversing
changes made to 0aab649203e8003ff685f2c0cbead27a2a545fc8.
Fixed problems from last commit