Re: Error with footnote

2003-01-20 Thread Marko Petersen
At 23:13 19.01.2003 +0100, you wrote: java.lang.NullPointerException at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94) Seems like links do not mix well with footnote spilling. Workarounds: - Avoid links in footnotes generally. This will save you occasional other trouble too.

Error with footnote

2003-01-19 Thread Marko Petersen
Hi, I often get the following error after changing some content of my docbook-XML when I try to generate PDF: [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:74) at org.apache.fop.apps.Fop.main(Fop.java:19)

Embedded SVG to PDF on linux: Batik exception

2003-01-18 Thread Marko Petersen
Hi, I am using an SVG in an xml-fo file generated from docbook like the following: fo:instream-foreign-object !-- here svg code -- /fo:instream-foreign-object On my local machine (win xp, java 1.4.1) everything works if I call fop.bat or embedd it into my web application. On my linux server I got

Re: Embedded SVG to PDF on linux: Batik exception

2003-01-18 Thread Marko Petersen
At 20:01 18.01.2003 +0100, you wrote: Drop the batik.jar from your FOP distribution into the WEB-INF/lib or whatever fits, and remove other Batik jars from the classpath. Be aware this is incompatible with Cocoon's svg2jpeg and svg2png serializers. J.Pietschmann Thanks a lot, I thought I used the

Re: link from embedded svg to pdf content

2003-01-11 Thread Marko Petersen
At 20:09 11.01.2003 +0100, you wrote: Marko Petersen wrote: I have an xsl-fo file which includes an svg graphic. Is there any way to generate a link in the svg referencing a fo:block? No, you can't embed a fo:basic-link into an SVG. In principle, you can use JS actions to refer to FO content

link from embedded svg to pdf content

2003-01-10 Thread Marko Petersen
Hi, I have an xsl-fo file which includes an svg graphic. Is there any way to generate a link in the svg referencing a fo:block? I thought of something like the following, which does not work, but should illustrate the problem: fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- some fo here --

Re: Strange error when upgrading from 0.20.3 to 0.20.4

2002-11-19 Thread Marko Petersen
Hi, I think this can be done by System.setProperty(...), and I thought with: System.setProperty( org.xml.sax.driver, org.apache.xerces.parsers.SAXParser ); But I tried it and it does not work, maybe I did something wrong. I tried another one, and the following should work: System.setProperty(

Re: Convert to uppercase

2002-11-08 Thread Marko Petersen
Hi, I transformed some text to upper-case using variables and the transform() funcion. Maybe there is an easier way to do this, but this should work. The following is an example how to do this. Marko example.xml: ?xml version=1.0? test nodeHello/node /test example.xsl: ?xml version=1.0?

Re: Showing FO output

2002-11-07 Thread Marko Petersen
At 23:27 06.11.2002 +0100, you wrote: Jeremias Maerki wrote: I'm going a step further and I'm thinking about providing a development tool for FOP. I'm looking forward to this. For the subject at hand, however, I think a fop -xml foo.xml -xsl foo.xsl -fo foo.fo would do, and I hope I can get this

line before footnote area

2002-11-06 Thread Marko Petersen
Hi, I am trying to add a line between the main-reference-area and the footnote-reference-area. Has anybody an idea how to do this? Greetings, Marko

Re: How to show PDF file in jsp page II.

2002-11-06 Thread Marko Petersen
Hi, your PDF file has to be accessible for tomcat, for example: Imagine your web application is stored under %TOMCAT_ROOT%/webapps/yourapp Then your PDF file has to be somewhere in your 'yourapp' directory. It is the same as html pages: you referene them (e.g. in html) with a href=foo.html -

Re: Losing Browser Session when Acrobat Plugin fails

2002-11-06 Thread Marko Petersen
Hi, maybe you should call your servlet with the option target=blank, for example: a href=/MyServlet target=_blankPDF/a This causes your Servlet output to appear in a new browser window - the old one is still there and should have the valid session. This only helps to hold the session, I think your

Re: line before footnote area

2002-11-06 Thread Marko Petersen
: Marko Petersen wrote: I am trying to add a line between the main-reference-area and the footnote-reference-area. Has anybody an idea how to do this? Well, you certanly know what the first footnote body is, so you can just add block with an rule leader at the beginning. See Dave Pawson's example: http