Hello!

I've tried to use your script but it gives me the following
error:
Fatal error: Call to undefined function: getinstance() in
c:\web\root\pdf.php on line 5

Can you help me?

Thanks.
AI


[EMAIL PROTECTED] wrote:
I made a little script in php to try to use iText from php
and I got i working!!!!
The script is the following

        $document = new Java('com.lowagie.text.Document');
        $outputFile = new Java('java.io.FileOutputStream',
'itextFile.pdf');
        $writer = new Java('com.lowagie.text.pdf.PdfWriter');
        $writer.getInstance($document, $outputFile);
                $document->open();
        $document->add(new
Java('com.lowagie.text.Paragraph','Hello World"'));
        $document->close();

               
and I got the pdf file created!

_______________________________________
Connessione ed e-mail gratuita da 10 mb
consultabile tramite web e tramite pop.
www.infinito.it vieni a scoprire tutti i nostri servizi!

http://www.infinito.it/xmail



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from
real users.
Discover which products truly live up to the hype. Start
reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to