RE: (Postscript) transformation of block-container

2007-08-06 Thread Peter Coppens

>> 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.

Finally got around trying this. It works...more or less.

If I start from 

  
jaja



and change the ctm as in 





This does not rotate the 'background' of the block-container, but only its'
'content'.

http://www.nabble.com/file/p12018237/fo.pdf fo.pdf 

Would anyone have any thoughts?

Thanks,

Peter
-- 
View this message in context: 
http://www.nabble.com/%28Postscript%29-transformation-of-block-container-tf3632392.html#a12018237
Sent from the FOP - Users mailing list archive at Nabble.com.


-
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]



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]



(Postscript) transformation of block-container

2007-04-23 Thread Peter Coppens

Gentlepeople,

Does anyone know how I could apply a postscript transformation on the
content of a block-container.

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.

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!

Peter


-- 
View this message in context: 
http://www.nabble.com/%28Postscript%29-transformation-of-block-container-tf3632392.html#a10142589
Sent from the FOP - Users mailing list archive at Nabble.com.


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