h2p icon indicating copy to clipboard operation
h2p copied to clipboard

H2P - Convert HTML to PDF using PHP and PhantomJS. Unmaintained.

Results 8 h2p issues
Sort by recently updated
recently updated
newest added

I'm using this simple code to generate a PDF: ``` ``` The PDF is generated but it's 0 KB and Adobe Reader says it's corrupted when trying to open it....

When writing HTML to a PDF file using the `h2p` class I notice there is quality loss on the images. Any tips? I've added the `quality` parameter to the `render`...

Olá. Estou gerando alguns PDF´s, mas o tamanho médio é de 600k. Quando eu abro eles no Acrobat PDF e peço pra salvar como PDF otimizado, o tamanho já diminui...

Library is creatin following command on window "C:\www\myproject\vendor\kriansa\h2p\bin/win32/phantomjs.exe" "C:\www\myproject\vendor\kriansa\h2p\bin/converter.js" "{ destination : C:\Windows\TEMP\14b6e6edc209b6e731bdbc79976a9430438409ae.tmp , request :{ uri : C:\Windows\TEMP\127ef8f78c335d9af694a9cef0423541dd17a256.html , method : GET }, orientation : Portrait , format :...

bug

To be able to pass a JSON string through the shell and retain its quotes I made PhantomJS.php base64 encode the string. converter.js now base64 decodes the string before JSON...

In case of a js error (on the page that phantomjs is trying to render) the converter returns the Exception but with success true and thus the page created. I...

bug

Here is my script in the PHP file: require_once("include/h2p/autoloader.php"); use H2P\Converter\PhantomJS; use H2P\TempFile; $converter = new PhantomJS(); $input = new TempFile('test string to pdf', 'html'); // Make sure the 2nd...