Re: Re: PDF Creation
| From: | R B | Date: | Fri, 14 Mar 2003 16:57:27 +0000 |
| Subject: | Re: Re: PDF Creation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139733@lists.php.net to get a copy of this message | ||
I'm trying to use PDFreportsLite in Windows.
in the /src folder, there is a rep.php example.
But when i run the rep.php script, nothing apears, only the white page and the window done status.
In the PDFReportsLite.php, i set:
$MM_PDFReportsLite_HOSTNAME = "127.0.0.1";
$MM_PDFReportsLite_DBTYPE = "mysql";
$MM_PDFReportsLite_DATABASE = "pdfreportslite"; $MM_PDFReportsLite_USERNAME = "root";
$MM_PDFReportsLite_PASSWORD = "root";
In the Yaps.inc.php, i set:
if (!defined('YTMP_DIR')) define('YTMP_DIR',"./tmp");
// Complete GhostScript filename
if (!defined('YGS_DIR')) define('YGS_DIR',"./gs");
Can you help me?
From: "Alexandru COSTIN" <acostin@interakt.ro> To: php-general@lists.php.net Subject: [PHP] Re: PDF Creation Date: Thu, 13 Mar 2003 22:17:37 +0200 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" <ccrane@ikon.com> wrote in message news:20030313180550.54518.qmail@pb1.pair.com... 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_________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/