Refactor PDF document

* To improve code climate score