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 Keen Tim <Ti...@nrm.qld.gov.au> on 2002/03/06 00:35:03 UTC

Trouble with ZapfDingbats

I recently upgraded to the latest version of Fop (fop-0.20.3rc2) to take
advantage of the changes to the attribute master-name and am now having
problems with the ZapfDingbats font. Essentially my PDF doesn't
recognise the font.

Is anyone else experiencing the same problems? Is this a known problem?
Am I missing something? Should I rollback to a previous version?

Any help would be appreciated.

Cheers 


Tim Keen
Analyst Programmer
WERD Project
Dept of Natural Resources & Mines
4th Floor, Mineral House
41 George St
Brisbane QLD 4000
(07) 3224 2559 (ph)
(07) 3224 7963 (fax)
tim.keen@dnr.qld.gov.au



************************************************************************
The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.

Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  

If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  
************************************************************************


Re: problems with fo:external-graphic

Posted by Michael Engelhart <me...@earthtrip.com>.
I'm not using Tomcat.  I just have a standalone application that I'm 
using.   All the libraries are in a directory that I add to my 
classpath.   The error I'm getting is that the image is not found.

Thanks

mike
On Tuesday, March 12, 2002, at 11:17  AM, Guillaume Laforge wrote:

> Hello Michael,
>  
> Do you still have the same problem ? (SVGDocument class not found ?)
> I've got the same problem. It heavily depends on your tomcat version 
> you are using.
> A quick hack for me was to move batik.jar from my WEB-INF/lib directory 
> to Tomcat's common/lib.
> It works, but it's not very cool if you wish to make a deployable 
> archive (a WAR file), because you have to install the WAR, AND THEN : 
> Batik.jar in common/lib.
> I think the problem comes from Tomcat itself, in the way it loads the 
> jar files. The custom class loaders behaves totally differently between 
> Tomcat 3.2 and Tomcat 4.0.x. And even between Tomcat 4.0.1, 2 and 3 !!!!
> I dont have the problem with Tomcat 4.0.1 (jdk1.3.1 on Linux and on 
> Windows2K) and the problem appears with Tomcat 4.0.3 on W2K. 
> Did you find another solution to this problem ?
>  
> Guillaume

Re: problems with fo:external-graphic

Posted by Guillaume Laforge <gl...@reflexe.fr>.
Hello Michael,

Do you still have the same problem ? (SVGDocument class not found ?)
I've got the same problem. It heavily depends on your tomcat version you are using.
A quick hack for me was to move batik.jar from my WEB-INF/lib directory to Tomcat's common/lib.
It works, but it's not very cool if you wish to make a deployable archive (a WAR file), because you have to install the WAR, AND THEN : Batik.jar in common/lib.
I think the problem comes from Tomcat itself, in the way it loads the jar files. The custom class loaders behaves totally differently between Tomcat 3.2 and Tomcat 4.0.x. And even between Tomcat 4.0.1, 2 and 3 !!!!
I dont have the problem with Tomcat 4.0.1 (jdk1.3.1 on Linux and on Windows2K) and the problem appears with Tomcat 4.0.3 on W2K. 
Did you find another solution to this problem ?

Guillaume
   "Michael Schifferdecker" <mi...@gmx.de> wrote

  Hello all,

  I have a problem with fo:external-graphic.

  I use a Servlet to do PDF generation together with a test style sheet which
  produces FO-code in which the following fo:external-graphic is contained:

  ...
  <fo:external-graphic src="file:///c:/xml_space/lohnsteuer/fd_logo.gif"
  height="0.58cm" width="2.71cm"/>
  ...

  When I use this under jBuilder with integrated Apache Tomcat 3.2 to include
  the GIF fd_logo.gif into the PDF everything works fine.

  But: after the whole application is distributed to my stand alone Tomcat 4.0
  server problems occur (see following exception).
  The error occurs with FOP 0.20.2RC and with 0.20.3 also.

  What's the cause for this?
  What alternatives do I have?

  Best regards, Michael

  (exception information follows)

  exception root cause...
    java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument

  complete exception as follows...

  type Exception report
  message Internal Server Error

  description The server encountered an internal error (Internal Server Error)
  that prevented it from fulfilling this request.

  exception

  javax.servlet.ServletException: Servlet execution threw an exception
  	at
  ...
  ...
  ...
  ...
  root cause

  java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
  	at
  org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.jav
  a:45)
  	at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:100)
  	at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:125)
  	at org.apache.fop.fo.flow.Block.layout(Block.java:259)
  	at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:263)
  	at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:344)
  	at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172)
  	at org.apache.fop.fo.flow.Table.layout(Table.java:226)
  	at org.apache.fop.fo.flow.Block.layout(Block.java:259)
  	at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:78)
  	at
  org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.j
  ava:413)
  	at
  org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.j
  ava:362)
  	at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:302)
  	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:191)
  	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:178)
  	at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398)
  	at
  org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
  .java:1007)
  	at
  org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
  LDocumentScanner.java:1255)
  	at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
  java:380)
  	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
  	at org.apache.fop.apps.Driver.render(Driver.java:459)
  	at org.apache.fop.apps.Driver.run(Driver.java:542)
  	at
  formdirekt.pdfgen.POSTReceiveServlet.renderFO(POSTReceiveServlet.java:145)
  	at formdirekt.pdfgen.POSTReceiveServlet.doPost(POSTReceiveServlet.java:71)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  	at
  ...
  ...
  ...



Re: problems with fo:external-graphic

Posted by Guillaume Laforge <gl...@reflexe.fr>.
Hello Michael,

Do you still have the same problem ? (SVGDocument class not found ?)
I've got the same problem. It heavily depends on your tomcat version you are using.
A quick hack for me was to move batik.jar from my WEB-INF/lib directory to Tomcat's common/lib.
It works, but it's not very cool if you wish to make a deployable archive (a WAR file), because you have to install the WAR, AND THEN : Batik.jar in common/lib.
I think the problem comes from Tomcat itself, in the way it loads the jar files. The custom class loaders behaves totally differently between Tomcat 3.2 and Tomcat 4.0.x. And even between Tomcat 4.0.1, 2 and 3 !!!!
I dont have the problem with Tomcat 4.0.1 (jdk1.3.1 on Linux and on Windows2K) and the problem appears with Tomcat 4.0.3 on W2K. 
Did you find another solution to this problem ?

Guillaume
   "Michael Schifferdecker" <mi...@gmx.de> wrote

  Hello all,

  I have a problem with fo:external-graphic.

  I use a Servlet to do PDF generation together with a test style sheet which
  produces FO-code in which the following fo:external-graphic is contained:

  ...
  <fo:external-graphic src="file:///c:/xml_space/lohnsteuer/fd_logo.gif"
  height="0.58cm" width="2.71cm"/>
  ...

  When I use this under jBuilder with integrated Apache Tomcat 3.2 to include
  the GIF fd_logo.gif into the PDF everything works fine.

  But: after the whole application is distributed to my stand alone Tomcat 4.0
  server problems occur (see following exception).
  The error occurs with FOP 0.20.2RC and with 0.20.3 also.

  What's the cause for this?
  What alternatives do I have?

  Best regards, Michael

  (exception information follows)

  exception root cause...
    java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument

  complete exception as follows...

  type Exception report
  message Internal Server Error

  description The server encountered an internal error (Internal Server Error)
  that prevented it from fulfilling this request.

  exception

  javax.servlet.ServletException: Servlet execution threw an exception
  	at
  ...
  ...
  ...
  ...
  root cause

  java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
  	at
  org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.jav
  a:45)
  	at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:100)
  	at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:125)
  	at org.apache.fop.fo.flow.Block.layout(Block.java:259)
  	at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:263)
  	at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:344)
  	at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172)
  	at org.apache.fop.fo.flow.Table.layout(Table.java:226)
  	at org.apache.fop.fo.flow.Block.layout(Block.java:259)
  	at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:78)
  	at
  org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.j
  ava:413)
  	at
  org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.j
  ava:362)
  	at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:302)
  	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:191)
  	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:178)
  	at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398)
  	at
  org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
  .java:1007)
  	at
  org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
  LDocumentScanner.java:1255)
  	at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
  java:380)
  	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
  	at org.apache.fop.apps.Driver.render(Driver.java:459)
  	at org.apache.fop.apps.Driver.run(Driver.java:542)
  	at
  formdirekt.pdfgen.POSTReceiveServlet.renderFO(POSTReceiveServlet.java:145)
  	at formdirekt.pdfgen.POSTReceiveServlet.doPost(POSTReceiveServlet.java:71)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  	at
  ...
  ...
  ...



Re: Trouble with ZapfDingbats

Posted by TJ Smith <tj...@tjinc.com>.
Hi
I recently had problems with ZapfDingbats in fop 20.3  The solution is to
use the Unicode for the dingbat you wish to render - I was using:

 <fo:inline font-family="ZapfDingbats">l</fo:inline>
which produced a filled-in circle character in 20.1, but rendered a pair of
scissors in 20.3  The solution is to use:
 <fo:inline font-family="ZapfDingbats">&#x25CF;</fo:inline>
which works fine in 20.3

Hope this helps

TJ
----- Original Message -----
From: "Keiron Liddle" <ke...@aftexsw.com>
To: <fo...@xml.apache.org>
Sent: Wednesday, March 06, 2002 4:48 AM
Subject: Re: Trouble with ZapfDingbats


>
> I'm not sure what the problem is that you are having but ZapfDingbats
> works fine for me both on unix and windows NT.
>
> On 2002.03.06 00:35 Keen Tim wrote:
> > I recently upgraded to the latest version of Fop (fop-0.20.3rc2) to take
> > advantage of the changes to the attribute master-name and am now having
> > problems with the ZapfDingbats font. Essentially my PDF doesn't
> > recognise the font.
> >
> > Is anyone else experiencing the same problems? Is this a known problem?
> > Am I missing something? Should I rollback to a previous version?
> >
> > Any help would be appreciated.
> >
> > Cheers
>



Re: Trouble with ZapfDingbats

Posted by Keiron Liddle <ke...@aftexsw.com>.
I'm not sure what the problem is that you are having but ZapfDingbats 
works fine for me both on unix and windows NT.

On 2002.03.06 00:35 Keen Tim wrote:
> I recently upgraded to the latest version of Fop (fop-0.20.3rc2) to take
> advantage of the changes to the attribute master-name and am now having
> problems with the ZapfDingbats font. Essentially my PDF doesn't
> recognise the font.
> 
> Is anyone else experiencing the same problems? Is this a known problem?
> Am I missing something? Should I rollback to a previous version?
> 
> Any help would be appreciated.
> 
> Cheers