RE: userconfig.xml in servlet

2003-01-31 Thread Rakesh Patel
Hi Peter, I had the same issue. Here's my servlet code: ServletContext scntxt = this.getServletContext(); String pathToFile = scntxt.getRealPath(/WEB-INF); String imagePath = file: + pathToFile; org.apache.fop.configuration.Configuration.put(baseDir, imagePath); Hope that helps Rakesh

RE: Counting the number of pages generated in the pdf file

2003-01-31 Thread Rakesh Patel
Hi, the standard way is to add a block (with an id value) on the end of the fo and then reference it. Rakesh -Original Message- From: MARTIN Franck [mailto:[EMAIL PROTECTED] Sent: 31 January 2003 16:52 To: [EMAIL PROTECTED] Subject: Counting the number of pages generated in the pdf

Hyperlink in a List

2003-01-28 Thread Rakesh Patel
Hi, Does anybody know why a hyperlink inside a list won't work? Here's the code: fo:list-block provisional-distance-between-starts=12pt space-before.optimum=12pt text-align=justify fo:list-item fo:list-item-label end-indent=label-end()fo:block#x2022;/fo:block/fo:list-item-label

Table cell alignment and images

2003-01-25 Thread Rakesh Patel
Hi, I have a problem I have not been able to solve for quite a while to do with placement of images inside table cells. I have two images, held within two table cells. The code looks like this: fo:table-column column-width=31.8mm/ fo:table-column column-width=46mm/!-- 46mm --

Escape sequences and fop

2003-01-21 Thread Rakesh Patel
Hi, I am seeing some strange behaviour with FOP in an embedded servlet environment and also within my (XML Spy) development environment. I have an XML file and and XSL file. I process the files producing an fo document which is rendered by FOP. There is one tag which needs embedded fo tags

Escape sequences and fop

2003-01-21 Thread Rakesh Patel
Hi Oleg, the reason I need to use disable-output-escaping is because at present the xml data (the HTBodyText tags) sometimes contains html tags. I need to replace these with their fo equivalents. If you know how else to do this, please let me know. I am going to go back to some previous code

Problem finding images in WAR file

2003-01-20 Thread Rakesh Patel
Hi, I have seen various posts about this but nothing definative about the solution. Here's the problem: I am building a web application to deploy and have no idea whether the deployment site runs with Unix or Windows or which Servlet engine they use. In theory, this should not be a problem if

Solution for finding images in a WAR file

2003-01-20 Thread Rakesh Patel
Hi, I have found a solution that I think works (have not got access to a Unix environment to confirm this) but I did not hard-code any window/unix specific paths. Here's a snippet of code I used: ServletContext scntxt = this.getServletContext(); String pathToFile =

Concatenating pdf's

2003-01-10 Thread Rakesh Patel
Hi, not specifically a FOP question but I have a requirement to append on the end of a FOP-generated pdf another pdf. This other pdf is not dynamically generated. Is this possible? Page numbering and TOC do not need to reference this additional pdf if that makes things easier. The only way I