fix pdf generation. Fix #170
Merge pull request #180 from lunika/170-pdf-template-definition

This PR was merged into thelia:master branch.

Discussion
----------

Fix pdf generation

                        
| Q             | A    |
| ---           | ---  |
| Bug fix?      | y    |
| New feature?  | n    |
| BC breaks?    | n    |
| Deprecations? | n    |
| Tests pass?   | y    |
| Fixed tickets | #170 |
| License       | GPL  |
| Doc PR        |      |
                        


Commits
-------

9b81e889462d400d839423a2ed0d3543bc7d21bc fix pdf generation. Fix #170 lunika