Welcome Guest, Not a member yet? Register   Sign In
yet another pdf library
#6

[eluser]pistolPete[/eluser]
[quote author="pixelazion" date="1237236875"]i'm really new to this library plus, it's french ^_^ [/quote]
I just had a quick look, didn't know it either.
And yes, it's pretty unusual to have a non english source code Smile

[quote author="pixelazion" date="1237236875"]
how do you save the pdf to a directory directly? just like dompdf you can write it to file...
[/quote]

The second parameter of Output() accepts nearly the same arguments as the underlying FPDF class method:
Code:
// second paramter:
// '', FALSE, or 'I' :  header('Content-Type: application/pdf'); is sent to display the pdf inline.
// TRUE or 'S': returns the pdf file contents to a variable
// 'F': saves the pdf file to a directory

// in your case:
$html2pdf->Output( $filename.'.pdf', 'F' );


Messages In This Thread
yet another pdf library - by El Forum - 03-16-2009, 01:10 AM
yet another pdf library - by El Forum - 03-16-2009, 02:59 AM
yet another pdf library - by El Forum - 03-16-2009, 03:05 AM
yet another pdf library - by El Forum - 03-16-2009, 04:58 AM
yet another pdf library - by El Forum - 03-16-2009, 09:54 AM
yet another pdf library - by El Forum - 03-16-2009, 10:20 AM
yet another pdf library - by El Forum - 03-16-2009, 06:09 PM
yet another pdf library - by El Forum - 03-16-2009, 09:35 PM
yet another pdf library - by El Forum - 06-16-2009, 07:51 AM
yet another pdf library - by El Forum - 06-16-2009, 07:54 AM
yet another pdf library - by El Forum - 06-16-2009, 08:25 AM
yet another pdf library - by El Forum - 03-09-2011, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB