Embedded EPS in PDF

2004-01-20 Thread Torsten
Hello fop-users, I have a problem if I insert a eps file in a pdf document (as external-graphic). This graphic will be inserted and Acrobat Reader naturally ignores the postscript content inside the pdf, also a postcript printer prints this document correctly, because its interpreter ignores the

Including images from a servlet

2004-01-20 Thread Richard Sweeney
Hi, I'm using FOP with a servlet. The servlet generates XML which is then translated using XSL or, if the user clicks print, will take the XML and generate a PDF. In the XSL-FO I have an image that appears in the produced PDF and reference it like so: fo:external-graphic src=url(logo.jpg)/ if I

Re: Including images from a servlet

2004-01-20 Thread Chris Bowditch
Richard Sweeney wrote: snip/ fo:external-graphic src=url(path/to/file/logo.jpg)/ is there a way to make it search for the image in the current directory, i.e. the same one as the XSL-FO stylesheet? You can set the base directory for which relative paths will be resolved against. This can be done

Embeded EPS in PDF

2004-01-20 Thread Torsten
Hello fop-user, Forget the previous mail ;) I've redirected a stream into a file and see the prob now. We don't send the eps-file to fop, but we create an 'real' postscript file which has the eps included (plus some extra listing informations). Now EPSReader only checks the first 4

RE: Including images from a servlet

2004-01-20 Thread mathieu . fretiere
URL : unknown protocol: c Well, 'c' is not a protocol, you should try something like : file:C:///stylesheets/fop or url('file:C:///stylesheets/fop') I'm no sure, experts will tell you more Mathieu - To unsubscribe, e-mail:

Re: Including images from a servlet

2004-01-20 Thread J.Pietschmann
Richard Sweeney wrote: [ERROR] Error while creating area : Invalid Image URL - error on relative URL : unknown protocol: c ---(that's actually where the message ends) Check the FAQ: http://xml.apache.org/fop/faq.html#MalformedURLException J.Pietschmann

Re: Error on AIX box with no X-Windows

2004-01-20 Thread J.Pietschmann
Manjush G. Menon wrote: The java code exits; without throwing an Exception at the line where new Driver() instance is created. Does this have any relation with X-Windows? That's hard to say without taking a look at the actual exception message. However, FOP has indeed problems on headless servers,

Re: Embeded EPS in PDF

2004-01-20 Thread Jeremias Maerki
Hi Torsten On 20.01.2004 15:43:00 Torsten wrote: Hello fop-user, Forget the previous mail ;) I've redirected a stream into a file and see the prob now. We don't send the eps-file to fop, but we create an 'real' postscript file which has the eps included (plus some extra listing

NullPointer in setupDefaultMappings in embedded FOP

2004-01-20 Thread Angus McIntyre
I'm writing a Java application which uses embedded FOP to convert XML to PDF. My code is based on ExampleXML2PDF (which does the XSLT transformation internally), and I'm running FOP 0.20.5 under Java 1.4.1 on a MacOS X machine. I get the following error: Exception in thread main