Rectification:

$snappy = new SnappyPdf;
$snappy->setExecutable('/usr/bin/wkhtml2pdf'); // or whatever else
$snappy->save('http://google.fr', '/tmp/google.pdf');

On Oct 22, 9:26 am, Florian <sideral.undergro...@gmail.com> wrote:
> I think you should use Snappy, it seems better written than the
> integrationWithPHP example.
>
> I didn't tested, but I would try this:
>
> $snappy = new SnappyPdf;
> $snappy->save('http://google.fr', '/tmp/google.pdf');
>
> Readhttp://github.com/knplabs/snappy/blob/dd9cc5117769751e1f64c1b1f4c825c...
>
> On Oct 22, 5:28 am, fxsymfony <fari...@gmail.com> wrote:
>
>
>
> > Hi Florian,
>
> > It works ok from the command line, for example if I type:
>
> > wkhtmltopdf-i386http://google.comgoogle.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 <sideral.undergro...@gmail.com> 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<sideral.undergro...@gmail.com>  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<fari...@gmail.com>  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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to