Hello,

You should also look at http://www.interakt.ro/products/PDFreportsLite/

It allows you to avoid using the API and concentrate on the reports

Alexandru

--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610
"Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am just getting into PDF creation and I am having some issues. Can
anyone
> send me a simple script that creates a PDF doc. I would like it to open in
> the browser after creation, not create a file. If someone has a simple one
> with an image placement as well that would be great. I can figure it out
if
> I have a working one, but everything I tried so far does not work. Here is
> the latest I tried and the error I get.
>
> Warning: Wrong parameter count for pdf_close_image() in
> /home/inxdesig/public_html/demos/pennytraders.com/pdf.php on line 20
>
> Fatal error: PDFlib error: function 'PDF_stroke' must not be called in
> 'page' scope in /home/inxdesig/public_html/demos/pennytraders.com/pdf.php
on
> line 22
>
>
> <?php
>
> $pdf = PDF_open();
> pdf_set_info_author($pdf, "Luca Perugini");
> PDF_set_info_title($pdf, "Brochure for FlyStore");
> pdf_set_info_creator($pdf, "See Author");
> pdf_set_info_subject($pdf, "FlyStore");
> PDF_begin_page($pdf, 595, 842);
> PDF_add_outline($pdf, "Item ".$data[1]);
> pdf_set_font($pdf, "Helvetica-Bold" , 20, winansi);
> pdf_set_text_rendering($pdf, 0);
> pdf_show_xy($pdf, "FlyStore Catalogue 2000",50,780);
>
> PDF_show_xy($pdf, "Item : " .$data[1], 100, 700);
>
> PDF_show_xy($pdf, "Description : " .$data[2], 100, 620);
>
> $im = PDF_open_jpeg($pdf, "pass4_sml.jpg");
> pdf_place_image($pdf, $im, 100, 300, 3);
> pdf_close_image ($im);
>
> pdf_stroke($pdf);
> PDF_end_page($pdf);
> PDF_close($pdf);
>
>
> ?>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to