From: Bob D. <bd...@si...> - 2003-10-25 08:26:11
|
Hey, the xml file should be in the same dir as the .php also.. acroread doesn't always copy text right out of pdf documents I'm guessing this is the problem.. it tuens single quotes into spaces :( Also.. you can check your apache error log.. RLIB will log stuff there by default.. and RLIB uses libxml.. which logs XML errors there also (via stderr) Attached is a report.xml file that should work On Fri, 2003-10-24 at 09:00, Everton Luis Berz wrote: > hi, > i have been installed Rlib 1.1.1. > testing example of betabook.pdf, browser show me > "Document contain no data" error. > what is wrong? > > * phpinfo(): > Additional Modules > sysvshm > sysvsem > rlib > > * mysql: > [everton@nsa3 ~]$ mysql -u everton -h localhost test > ... > mysql> select * from example; > +----+--------------+------+-------+ > | rn | name | type | price | > +----+--------------+------+-------+ > | 1 | Hammer | 1 | 10 | > | 2 | Screw Driver | 1 | 7 | > | 3 | Bolts | 1 | 2 | > | 4 | Hot Dog | 2 | 1.5 | > | 5 | Soda | 2 | 1 | > | 6 | Chips | 2 | 1 | > | 7 | Jaguar | 3 | 50000 | > | 8 | Lexus | 3 | 60000 | > | 9 | Pinto | 3 | 2000 | > +----+--------------+------+-------+ > 9 rows in set (0.00 sec) > > * php code > [everton@nsa3 /var/www/html/sa/rlib]$ cat rlibmy.php > <? //dl ("libr-php.so"); > $format = "pdf"; > $sql_host = "localhost"; > $sql_users = "everton"; > $sql_password = ""; > $sql_database = "test"; > $rlib = rlib_init(); > rlib_add_datasource_mysql($rlib, "mysql", $sql_host, $sql_users, > $sql_password, $sql_database); > rlib_add_query_as($rlib, "mysql", "select * from example", > "example"); > rlib_add_report($rlib, "report.xml"); > rlib_set_output_format($rlib, $format); > rlib_execute($rlib); > header( rlib_get_content_type($rlib)); > rlib_spool($rlib); > rlib_free($rlib); > ?> > > > * xml code (is betabook.pdf example) > > > Others formats (txt, csv) shows same error. |