kriansa / h2p

H2P - Convert HTML to PDF using PHP and PhantomJS. Unmaintained.
https://garajau.com.br/projects/h2p-convert-html-files-to-pdf/
75 stars 35 forks source link

Fix bad temp extension #4

Closed F21 closed 11 years ago

F21 commented 11 years ago

This fixes #3.

After some testing with phantomjs 1.9.1, I discovered the following:

The extension must be .html. If it is anything else, it will complain that the uri is not found.

kriansa commented 11 years ago

Hey @F21,

I've added a new branch (wip-2.0) and I'd like to ask you to test it. All these features you asked are there. This specific PhantomJS bug is now noticed when you try to convert using a file without the .html extension.