fix pdf export
Merge pull request #653 from arnaudbey/exportpdf

fix pdf export