You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Matthew East <md...@ubuntu.com> on 2006/04/23 12:41:23 UTC
Footnotes overlapping with main text body
Hi,
The footnotes in my pdf document[1] are overlapping with the main text body.
Does anyone know how I can remedy this?
[1] http://mdke.org/ubuntu/desktopguide.pdf
See pages 7, 31, 35, 39, 55, 63 of the pdf document.
I'm using:
fop - 0.20.5
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Normal Walsh fo stylesheets with some customisations
Operating System - Ubuntu 6.06
Thanks for any help!! Any other advice for improving the pdf are welcome ;)
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text
body)
Posted by Glen Mazza <gm...@apache.org>.
I would first try to get the standard Docbook stylesheets working with
FOP 0.92, using the Docbook Fop extenstions for FOP 1.0, *before* doing
any customization of those stylesheets for your own purposes. Again,
use the latest Docbook stylesheet versions available--as I understand it
the Docbook extensions for FOP 0.92 are quite new.
If you have incur any problems with this, go to the OASIS Docbook-Apps
ML and ask there, again, *before* you make your customizations to
Walsh's stylesheets--a greater percentage of readers can help you with
Docbook-related extensions for FOP. Once you have FOP working with the
latest Docbook stylesheets and with the FOP1 extensions enabled, *then*
proceed to make modifications to those stylesheets if you wish,
confident in the fact that any subsequent problems you will run into
will not be FOP or Docbook-related, but related to your customizations
instead.
Next, as for the error that you are getting:
"java.lang.IllegalStateException: Flow 'xsl-region-body' does not map to
the region-body in page-master 'blank'. FOP presently does not support
this." This is not bookmark-related, so something is wrong either with
your customization of Walsh's stylesheets or with the FOP1.0 Docbook
extensions that are being activated: The fo:flow should point to the
fo:region-body by having a "flow-name='xsl-region-body'" property, and
the region-name property of the fo:region-body of the page master you
are using, if it is using a default "xsl-region-xxxxx" name, cannot be
anything but "xsl-region-body". It is difficult to determine the
problem because you are not giving us the output FO document, but the
XSL/XSLT one instead. As always, create a *minimum* FO document that
still reproduces the error, and send us *that* one.
But even before that, if the minimum FO document does indeed show the
Flow 'xsl-region-body'... error above, you may not need to even send it
to us, just fix your XSLT so that error doesn't occur. The Mulberry
XSLT Mailing List can help you with your XSLT.
Glen
Matthew East wrote:
> Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
>
>>Get the latest release (1.69.1) at
>>http://sourceforge.net/project/showfiles.php?group_id=21935#files
>
>
> Ok, I installed and used these, by amending my custom xsl to use them. I get the
> same error. Just for clarity:
>
> ERROR: http://fop.pastebin.com/677244
> XSL: http://fop.pastebin.com/677245
>
> Matt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthew East wrote:
> So, it's not possible to ensure that footnotes don't overlap with the main text
> using fop 0.20?
The footnote code in 0.20.5 has tons of problems, although overlapping
the main flow hasn't been reported for this version (a somewhat older
release, IIRC 0.20.2, had this problem). You are out of luck.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
> Matthew East wrote:
> >ERROR: http://fop.pastebin.com/677244
> >XSL: http://fop.pastebin.com/677245
> I apologize but I do not have the time to assist you further at this time.
No problem, thanks for the help you've given me so far.
> This may be a bug with FOP 0.92 ?
I'll wait and see if anyone else knows.
So, it's not possible to ensure that footnotes don't overlap with the main text
using fop 0.20?
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by Patrick Paul <pp...@yahoo.ca>.
Matthew East wrote:
>Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
>
>
>>Get the latest release (1.69.1) at
>>http://sourceforge.net/project/showfiles.php?group_id=21935#files
>>
>>
>
>Ok, I installed and used these, by amending my custom xsl to use them. I get the
>same error. Just for clarity:
>
>ERROR: http://fop.pastebin.com/677244
>XSL: http://fop.pastebin.com/677245
>
>Matt
>
Matt,
I apologize but I do not have the time to assist you further at this time.
This may be a bug with FOP 0.92 ?
Cheers,
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
> Get the latest release (1.69.1) at
> http://sourceforge.net/project/showfiles.php?group_id=21935#files
Ok, I installed and used these, by amending my custom xsl to use them. I get the
same error. Just for clarity:
ERROR: http://fop.pastebin.com/677244
XSL: http://fop.pastebin.com/677245
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by Patrick Paul <pp...@yahoo.ca>.
Get the latest release (1.69.1) at
http://sourceforge.net/project/showfiles.php?group_id=21935#files
Try to do a little reading about how to install it. Maybe there is a
package for Ubuntu.
Patrick
Matthew East wrote:
>Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
>
>>Make sure you get the latest stable docbook-xsl stylesheets and set the
>>following params :
>>
>>--stringparam fop.extensions 0
>>--stringparam fop1.extensions 1
>>
>>
>
>I have docbook-xsl 1.68, which comes with my distribution. I added that
>parameter to my custom stylesheet and receive this error:
>
>http://fop.pastebin.com/677207
>
>M
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
> Make sure you get the latest stable docbook-xsl stylesheets and set the
> following params :
>
> --stringparam fop.extensions 0
> --stringparam fop1.extensions 1
I have docbook-xsl 1.68, which comes with my distribution. I added that
parameter to my custom stylesheet and receive this error:
http://fop.pastebin.com/677207
M
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by Patrick Paul <pp...@yahoo.ca>.
Matthew East wrote:
>Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
>
>>You're welcome. This is what this mailing-list is for, helping people.
>>
>>
>
>Well, it's a very friendly mailing list :)
>
>
>
>>What I suggest is that you try not to use the FOP-specific extension.
>>
>>
>
>{snip}
>
>
>
>>Remove the "--stringparam fop.extensions 1" line.
>>
>>
>
>Ok, I set that to "0" in my custom xsl. But I now get some more errors:
>
>ERRORS: http://fop.pastebin.com/677156
>MYXSL: http://fop.pastebin.com/677158
>
>Thanks again for your help, hope this one is an easy one to solve!
>
>Matt
>
Ok this time I did a little research and I hope this will work.
Make sure you get the latest stable docbook-xsl stylesheets and set the
following params :
--stringparam fop.extensions 0
--stringparam fop1.extensions 1
Hope this does the trick.
Le me know,
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
> You're welcome. This is what this mailing-list is for, helping people.
Well, it's a very friendly mailing list :)
> What I suggest is that you try not to use the FOP-specific extension.
{snip}
> Remove the "--stringparam fop.extensions 1" line.
Ok, I set that to "0" in my custom xsl. But I now get some more errors:
ERRORS: http://fop.pastebin.com/677156
MYXSL: http://fop.pastebin.com/677158
Thanks again for your help, hope this one is an easy one to solve!
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by Patrick Paul <pp...@yahoo.ca>.
Matthew,
You're welcome. This is what this mailing-list is for, helping people.
What I suggest is that you try not to use the FOP-specific extension.
For example,
xsltproc \
--output myfile.fo
--stringparam fop.extensions 1 \
docbook-xsl/fo/docbook.xsl \
myfile.xml
Remove the "--stringparam fop.extensions 1" line.
Maybe you have done this another way in your customized stylesheet. The
basic idea is to deactivate that option.
This page might help
http://www.sagehill.net/docbookxsl/InstallingAnFO.html#UsingFop
Let me know how that goes,
Patrick
Matthew East wrote:
>Hi Patrick,
>
>Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
>
>
>
>>So basically you need to changefox:outline and use fo:bookmark-tree,
>>fo:bookmark and fo:bookmark-title.
>>
>>
>
>Thanks for this. I'm afraid I'm still not completely understanding how to do
>this. I'm using the nwalsh fo stylesheets, which seem to have this fox:outline
>thing (http://fop.pastebin.com/677084 is the section I've identified which seems
>to be relevant). But I don't know how to overrule this in my custom xsl, or what
>to replace it with. I'm not really fussy about bookmarks but it might be nice to
>have them, I suppose.
>
>Thanks for being so help so far (and for very fast responses!), and hopefully
>you can keep helping me until this is working :-( Apologies for my slowness!
>
>Matt
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Hi Patrick,
Patrick Paul <ppaul_apache <at> yahoo.ca> writes:
> So basically you need to changefox:outline and use fo:bookmark-tree,
> fo:bookmark and fo:bookmark-title.
Thanks for this. I'm afraid I'm still not completely understanding how to do
this. I'm using the nwalsh fo stylesheets, which seem to have this fox:outline
thing (http://fop.pastebin.com/677084 is the section I've identified which seems
to be relevant). But I don't know how to overrule this in my custom xsl, or what
to replace it with. I'm not really fussy about bookmarks but it might be nice to
have them, I suppose.
Thanks for being so help so far (and for very fast responses!), and hopefully
you can keep helping me until this is working :-( Apologies for my slowness!
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main
text body)
Posted by Patrick Paul <pp...@yahoo.ca>.
Matthew,
You did nothing wrong. What happens is that your the .fo you generate
uses the proprietary fox:outline extension that was supported by FOP 0.20.5
For more information checkout the compliance page:
http://xmlgraphics.apache.org/fop/compliance.html#fo-object-section
So basically you need to changefox:outline and use fo:bookmark-tree,
fo:bookmark and fo:bookmark-title.
Good luck,
Patrick
Matthew East wrote:
>Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
>
>
>>You said earlier you're on JDK 1.5, so take the "jdk1.4" binary. The JRE
>>should be enough. It doesn't matter. Just extract the .tar.gz and run
>>the "fop" script. That's it if you don't need any fancy stuff to begin
>>with.
>>
>>
>
>Ok, I tried installing it from scratch into ~/tmp/fop-0.92 and did a symlink in
>~/bin. It seems to work better, but I get a host of errors when trying to build
>the document, using the same stylesheets as I used with fop 0.20
>
>ERRORS: http://fop.pastebin.com/677001
>
>Any ideas? Sorry for the continuous questions!
>
>Matt
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> You said earlier you're on JDK 1.5, so take the "jdk1.4" binary. The JRE
> should be enough. It doesn't matter. Just extract the .tar.gz and run
> the "fop" script. That's it if you don't need any fancy stuff to begin
> with.
Ok, I tried installing it from scratch into ~/tmp/fop-0.92 and did a symlink in
~/bin. It seems to work better, but I get a host of errors when trying to build
the document, using the same stylesheets as I used with fop 0.20
ERRORS: http://fop.pastebin.com/677001
Any ideas? Sorry for the continuous questions!
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
You said earlier you're on JDK 1.5, so take the "jdk1.4" binary. The JRE
should be enough. It doesn't matter. Just extract the .tar.gz and run
the "fop" script. That's it if you don't need any fancy stuff to begin
with.
More info:
http://xmlgraphics.apache.org/fop/latest/running.html
On 23.04.2006 17:05:29 Matthew East wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> >
> > I've just done (more or less) the same. Extracted FOP 0.92 into a new
> > folder and created a symlink to "fop" from my ~/bin directory. Worked
> > like a charm.
>
> Ok, I'll try again from scratch. Can you help me with what I need to install?
> There are two archives at the download address, one called "jdk1.3" and another
> called "jdk1.4", which do I need? And do I need to be using Java jdk rather than
> jre (which I used with fop 0.20)? If so, is version 1.5 from sun going to be ok?
>
> http://apache.rmplc.co.uk/xmlgraphics/fop/
>
> Matt (total noob)
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Installing fop 0.92 (was Re: Footnotes overlapping with main text body)
Posted by Matthew East <md...@ubuntu.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> I've just done (more or less) the same. Extracted FOP 0.92 into a new
> folder and created a symlink to "fop" from my ~/bin directory. Worked
> like a charm.
Ok, I'll try again from scratch. Can you help me with what I need to install?
There are two archives at the download address, one called "jdk1.3" and another
called "jdk1.4", which do I need? And do I need to be using Java jdk rather than
jre (which I used with fop 0.20)? If so, is version 1.5 from sun going to be ok?
http://apache.rmplc.co.uk/xmlgraphics/fop/
Matt (total noob)
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Footnotes overlapping with main text body
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I've just done (more or less) the same. Extracted FOP 0.92 into a new
folder and created a symlink to "fop" from my ~/bin directory. Worked
like a charm. I'm no Unix crack so I can't help much but it sounds like
there must be something wrong with the way the "fop" script sets up the
FOP classpath. On the other side, it works for me, so it must be
something in your environment.
Referring to fop.bat won't help much as the Windows script works a
little differently and doesn't support auto-construction of the
classpath from all JAR files in the lib directory. If you get
"java.lang.NoClassDefFoundError: org/apache/fop/cli/Main" it means that
fop.jar wasn't found. The class org.apache.fop.cli.Main is in fop.jar.
Hopefully, someone else might help further.
On 23.04.2006 15:09:17 Matthew East wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> >
> > You might want to take a look at the latest release: Apache FOP 0.92beta.
>
> Is there any way to do it with FOP 0.20?
>
> I tried 0.92beta but can't figure out how to run it, I installed it to
> /opt/fop-0.92/ and made a symlink in /bin/fop.sh to /opt/fop-0.92/fop so that it
> fits my build script, but I always receive this error:
>
> matt@kalliope:~/Desktop/jai-1_1_2_01$ fop
> Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
>
> I looked up this error and saw that someone said that I needed to make sure that
> I had all the jar files mentioned in "fop.bat", so I downloaded as many of them
> as I could (jimi, jai) and added them, but I still get that error. I even tried
> removing some of the references to jar files in "fop.bat", but no good.
>
> I couldn't find any simple installation documentation: can someone tell me what
> I'm doing wrong?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Footnotes overlapping with main text body
Posted by Matthew East <md...@ubuntu.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
>
> You might want to take a look at the latest release: Apache FOP 0.92beta.
Is there any way to do it with FOP 0.20?
I tried 0.92beta but can't figure out how to run it, I installed it to
/opt/fop-0.92/ and made a symlink in /bin/fop.sh to /opt/fop-0.92/fop so that it
fits my build script, but I always receive this error:
matt@kalliope:~/Desktop/jai-1_1_2_01$ fop
Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
I looked up this error and saw that someone said that I needed to make sure that
I had all the jar files mentioned in "fop.bat", so I downloaded as many of them
as I could (jimi, jai) and added them, but I still get that error. I even tried
removing some of the references to jar files in "fop.bat", but no good.
I couldn't find any simple installation documentation: can someone tell me what
I'm doing wrong?
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Footnotes overlapping with main text body
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
You might want to take a look at the latest release: Apache FOP 0.92beta.
On 23.04.2006 12:41:23 Matthew East wrote:
> Hi,
>
> The footnotes in my pdf document[1] are overlapping with the main text body.
> Does anyone know how I can remedy this?
>
> [1] http://mdke.org/ubuntu/desktopguide.pdf
>
> See pages 7, 31, 35, 39, 55, 63 of the pdf document.
>
> I'm using:
>
> fop - 0.20.5
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Normal Walsh fo stylesheets with some customisations
> Operating System - Ubuntu 6.06
>
> Thanks for any help!! Any other advice for improving the pdf are welcome ;)
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org