Andreas L. Delmelle wrote:
>> -----Original Message-----
>> From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
>>
>
> Hi Richard,
>
> <snip />
>> Thank you for checking this out. Here's what this helped me
>> determine:
>>
>> 1) Even after moving the fo:region-body up two lines it still does
>> not work. I am using a build of FOP from 2004/05/29. IIRC, I had to
>> move to this quite a while back for JDK reasons.
>
> So you are using a version checked out of CVS (with tag HEAD)? In
> that case, I'm quite sure column-span was not yet implemented in May
> last year, so there could be your problem...
>
>> Before trying to build a new version of FOP CVS HEAD (I believe I
>> tried recently and had problems with Sun JDK 1.5 sp1) can anyone see
>> problems in my servlet code? Below are the relevant parts.
>
> Either switch back to the maintenance version --0.20.5-- or you will
> need a new build --AFAIK the current development version should
> compile without problem--, and with the new build also some
> modifications to your code, as for instance the Driver object has
> disappeared in the meantime...
>
> Just give us a yell if something still remains unclear.
Andreas - thanks, that explains a bunch. Last year I updated to a more
recent build from the HEAD (2004-05-29) because of a problem I was
having with a hyphenation problem that caused a spin loop.
When I tried to upgrade to a more recent version I ran into a problem of
not understanding how to achieve what I was achieving with the following
code:
imageURLProtocol = getInitParameter("imageURLProtocol");
String httpBaseDir = ".";
String baseDir = this.getServletContext().getRealPath(httpBaseDir);
userAgent = new FOUserAgent();
userAgent.setBaseURL(imageURLProtocol+baseDir);
...
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
driver.setUserAgent(userAgent);
driver.initialize();
Basically I need to set the base directory of where I output my PDF
files to.
AnywayI have looked at the new FOPServlet and understand it. And have
looked through many postings, the code and doc - but do not have a clue.
The new FOP API does things differently, it uses some standard Java XML
functions to create a "source" from a file. Maybe I just do not
understand the Java XML API well enough.
Can you give me a little guidance here?
Thank you once again.
- Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]