Re: Problem inserting a BMP image.

2007-04-24 Thread Chris Bowditch

Trevor Keast wrote:


Hi,

I am trying to insert a bitmap image into my pdf document using 
fo:external-graphic in my style sheet.


This works fine with most bmp's I try to insert but when I try and 
insert  a bmp representation of a ChartFX chart I get the following error.


I also use ChartFX with FOP. ChartFX can generate SVG which is the 
preferred method because it uses less space than a BMP and maintains a 
higher image quality. ChartFX can also generate JPG or PNG if you really 
need to work with rasterized images.


snip/

Chris




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Add Image Behind text to AWT preview

2007-04-24 Thread Harshini Madurapperuma
 
Have you tried specifying background-image attribute on fo:region-body
element?

Yes I tried but it's not working for AWT preview.
/Harshini


-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 3:12 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Add Image Behind text to AWT preview

Harshini Madurapperuma wrote:

 Hi all;
  
 Is there a way to add a Image behind text (a kind of background
 image) to AWT preview?

Have you tried specifying background-image attribute on fo:region-body
element?

Chris




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Footnotes with shared bodies

2007-04-24 Thread Andrea Aime

Hi,
in one application I have the need to have multiple footnotes,
all having the same inline element (say (1)) refer the same
body in the page footer area. Basically, this is a catalogue,
and footnotes are used to provide extra informations. Many
articles in the same page may have the same accessory information,
that we want to write just once at the end of the page.

The list is long, so the list may overflow on the next page,
if so, the foot element will have to be repeated again.

I don't think this is supported by xsl-fo, but I have would
be happy to be proven wrong.
If not supported, how difficult would it be to alter FOP
in order to support this requirement? Could you give me any
hint/direction?

Oh, the list of articles is in a table, so I would have to
fix footnotes not working within a table too (I see there's
an open bug with attached patches there, but for some reason
it has been lingering for over an year...).

Cheers
Andrea

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Postscript) transformation of block-container

2007-04-24 Thread Jeremias Maerki
Hi Peter

On 23.04.2007 17:30:04 Peter Coppens wrote:
 
 Gentlepeople,
 
 Does anyone know how I could apply a postscript transformation on the
 content of a block-container.

No, I'm afraid, that's not possible. Not from XSL-FO anyway.

 What I currently do is render the container content to png and then use svg
 to do the transformation. 
 
 I would however like to keep the content as text and have not found a way to
 achieve that.

How about doing the whole thing in SVG?

 The basic use case is arbitrary rotation of (fop formatted) text blocks, but
 scaling and skewing might be nice to have as well.
 
 Any guidance, as always, most warmly welcomed!

There's one hack you can try (0.93 or later): Manipulating the area tree
XML

Give your block-container an id. If you render your document using -at,
you get an XML file. Locate the block element that has a prod-id
attribute with the id you've given the block-container. There may be
more than one. Choose the one that has is-viewport-area=true. There,
you'll find an attribute called ctm. That's a transformation matrix.
If you manipulate it you may be able to achieve the effect you seek.
After modifying the XML you can render the XML file to PostScript using
-atin instead of -fo.

More info: http://xmlgraphics.apache.org/fop/0.93/intermediate.html

HTH

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP class loader problems in WebSphere

2007-04-24 Thread Jeremias Maerki
I'd check if you have multiple versions of FOP on different levels in
the class loader hierarchy. There's probably a version conflict. Not
sure where else this could come from.

Good luck.

On 24.04.2007 01:15:35 Hai-Fun Wu wrote:
 Hello,
 I am running my web application on WebSphere and I am passing a XSL-FO 
 file to FOP to create a PDF.  For some reasons, I got the following 
 exceptions about the WebSphere class loader.  Any help would be very 
 appreciated.
 Thank you very much,
 Hai-Fun Wu
 
  Begin backtrace for nested exception
 java.lang.RuntimeException: java.lang.LinkageError: Class 
 org/apache/fop/apps/Fop violates loader constraints:  definition mismatch 
 between parent and child loaders
 at 
 com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java(Compiled 
 Code))
 at 
 com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java(Compiled 
 Code))
 at java.security.AccessController.doPrivileged1(Native Method)
 at 
 java.security.AccessController.doPrivileged(AccessController.java(Compiled 
 Code))
 at 
 com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java(Compiled Code))
 at com.ibm.ws.asynchbeans.AlarmImpl.alarm(AlarmImpl.java(Compiled 
 Code))
 at com.ibm.ws.asynchbeans.am._Alarm.fireAlarm(_Alarm.java(Compiled 
 Code))
 at com.ibm.ws.asynchbeans.am._Alarm.run(_Alarm.java(Compiled 
 Code))
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
 Caused by: java.lang.LinkageError: Class org/apache/fop/apps/Fop violates 
 loader constraints:  definition mismatch between parent and child loaders
 at 
 com.ibm.lifesci.score.auxservices.common.JobForXSLFO.processWaitingJob(JobForXSLFO.java:185)
 at 
 com.ibm.lifesci.score.auxservices.common.JobForXSLFO.fired(JobForXSLFO.java:308)
 at 
 com.ibm.lifesci.score.auxservices.common.CommonRenditionServiceListener.fired(CommonRenditionServiceListener.java:208)
 at com.ibm.ws.asynchbeans.AlarmImpl.run(AlarmImpl.java(Compiled 
 Code))
 at 
 com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java(Compiled 
 Code))
 at java.security.AccessController.doPrivileged1(Native Method)
 at 
 java.security.AccessController.doPrivileged(AccessController.java(Compiled 
 Code))
 at javax.security.auth.Subject.doAs(Subject.java(Compiled Code))
 ... 9 more 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: (Postscript) transformation of block-container

2007-04-24 Thread Peter

 How about doing the whole thing in SVG?

Problem is that I then loose the text formatting features fo offers. I am
assuming that outputting fo(p) input to svg output is not anywhere near
production quality, but I am not sure that assumptions is true.

 There's one hack you can try (0.93 or later): Manipulating the area tree
 XML
 
 Give your block-container an id. If you render your document using -at,
 you get an XML file. Locate the block element that has a prod-id
 attribute with the id you've given the block-container. There may be
 more than one. Choose the one that has is-viewport-area=true. There,
 you'll find an attribute called ctm. That's a transformation matrix.
 If you manipulate it you may be able to achieve the effect you seek.
 After modifying the XML you can render the XML file to PostScript using
 -atin instead of -fo.
 
 More info: http://xmlgraphics.apache.org/fop/0.93/intermediate.html
 
 HTH
Yes it does. Thanks for the tip. I am most certainly going to try this.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Opentype fonts with FOP 0.93

2007-04-24 Thread Robert Sleator

Are OpenType fonts really supported under FOP 0.93 ?  The press release
(http://www.apachenews.org/archives/000928.html) says they are but the
fonts page (http://xmlgraphics.apache.org/fop/0.93/fonts.html) makes
no mention of them and I haven't been able to find any help on how to
use an OpenType font with FOP 0.93 so far.

The fonts I'm trying to use are ITC Garamond Std Book Condensed and
Helvetica Light Std Condensed from Adobe.