xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas L. Delmelle" <a_l.delme...@pandora.be>
Subject RE: Having trouble getting number-columns-spanned to work
Date Sun, 08 May 2005 20:28:18 GMT
> -----Original Message-----
> From: Richard Mixon (qwest) [mailto:rnmixon@qwest.net]
> 

Hi,

> 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);

Well, AFAICT, this should remain the same...

>   ...
>   Driver driver = new Driver();
>   driver.setRenderer(Driver.RENDER_PDF);
>   driver.setUserAgent(userAgent);
>   driver.initialize();

But, IIC, this needs to become

import org.apache.fop.apps.Fop;
...
Fop fop = new Fop(Fop.RENDER_PDF, userAgent);
...
Result res = new SAXResult(Fop.getDefaultHandler());
...

HTH!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message