Examples

2002-05-16 Thread Lee Goddard
On the examples page of the xml.apache.org/fop site,
http://xml.apache.org/fop/embedding.html
there is this sample:
   Driver driver = new Driver(new InputSource (args[0]),
  new FileOutputStream(args[1]));
   driver.setRenderer(RENDER_PDF);
   driver.run();
I thought perhaps RENDER_PDF referred to an (imported) constant.
But I from Java1.4 am told:
C:\PXML\_printing\test.java:33: cannot resolve symbol
symbol  : variable RENDER_PDF
location: class test
driver.setRenderer(RENDER_PDF);
Could someone please tell me of my error?
TIA
Lee
Lee Goddard
perl -e while(1){print rand0.5?chr 47:chr 92}


Re: Newbie: html-like table to fo-table

2002-05-16 Thread Lee Goddard

 Who has experiences with fo:tables and xslt and could
give us a hint?
It took me a month to get something passable using Perl
and XSL:FO, and I can't really it to you as I sold the copyright.
But: there is a very good tutorial on the site of another FOP...
www.renderx.com
 COMMODORE 64 BASIC V2 
Then you may recognise my sig from the VIC-20 manual!
Always wanted a C64...
Lee Goddard
perl -e while(1){print rand0.5?chr 47:chr 92}


Re: PDF from FOP to database as BLOB

2002-05-16 Thread Lee Goddard
At 10:51 16/05/2002 -0500, [EMAIL PROTECTED] wrote:
... Since our users can wait for these
reports we've decided to run a nightly job to create them and store the
PDFs in our database as a BLOB.  That way during peak usage hours our
servers will only need to deal with returning the PDF to the browser.
...My question is, HOW, using FOP and JDBC can I get my PDF into the 
database as a BLOB.

Any Ideas would be very helpful.
I worked on a project like that. One big question:
what is wrong with a file system?  In other words, why
tax a database with such a heavy load, when you can
use the Apache HTTPD. Just write a little Perl to convert
the docs as they come in, and put them in an obvious place,
and add them to an index page in good old HTML.  Or, if
you really wanna use that DB, index their URI and attributes.
Or is there a good reason why not? (Like, you work for Oracle...)
Lee
Lee Goddard
perl -e while(1){print rand0.5?chr 47:chr 92}