Hi Florian,

It works ok from the command line, for example if I type:

wkhtmltopdf-i386 http://google.com google.pdf

it does create the google.pdf file.

On the other hand, that Snappy lib seems interesting, I don't know how
to use it though, it would be great if they had a very simple working
example.

Regards

On Oct 21, 2:01 am, Florian <[email protected]> wrote:
> Hi,
>
> try your wkhtml2pdf from the command line first.
>
> Didn't used the lib before, so i'm not sure.
>
> but as i read the code, it seems to come from an error of the command line.
>
> Le 20/10/2010 14:03, fxsymfony a crit :
>
> > Hi Florian,
>
> > Im using Symfony 1.4.
>
> > Still having been able to get it to work, I'm using this php
> > script:      http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp
>
> > and I get the following error:
>
> > Fatal error: Uncaught exception 'Exception' with message 'WKPDF shell
> > error, return code 2.' in /home/mypath/test_pdf.php:207 Stack trace:
> > #0 /home/mypath/test_pdf.php(273): WKPDF->render() #1 {main} thrown
> > in /home/mypath/test_pdf.php on line 207
>
> > On Oct 19, 6:25 pm, Florian<[email protected]>  wrote:
> >> Hi,
>
> >> If you're talking of Symfony2, there is a bundle for that 
> >> :http://symfony2bundles.org/knplabs/SnappyBundle
>
> >> It uses the Snappy php5 lib, which is a wrapper for 
> >> wkhtml2pdf.http://github.com/knplabs/snappy
>
> >> On 19 oct, 09:03, fxsymfony<[email protected]>  wrote:
>
> >>> Has anyone used WkHtmlToPdf in Symfony? I have it set up on my server
> >>> (in works on command line) but don't know how to use in Symfony to
> >>> generate pdf files.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to