Fixed a issue while trying to read a temp generated PDF file and returning it.

Signed-off-by: Sebastián J. Seba <ssebastianj@gmail.com>
Merge pull request #3 from ssebastianj/master

Fixed an issue while trying to read a temp generated PDF file and returning it.