aspose file tools*
The moose likes XML and Related Technologies and the fly likes Vertical text in PDF using FOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Vertical text in PDF using FOP" Watch "Vertical text in PDF using FOP" New topic
Author

Vertical text in PDF using FOP

prabu padmanathan
Greenhorn

Joined: Dec 07, 2007
Posts: 5
Hi All

Am new to use FOP for generating PDF's , and i have the requirement to print the TEXT in VERTICAL way , Can you please help me how to achieve it?

Thanks
Prabu.P
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I don't know what "vertical way" means... perhaps you want the text rotated by 90 degrees? or the letters arranged in a column like

t
h
i
s

? Anyway as you (should) know, FOP is simply an implementation of the XSL:FO standard. Here's a link to that standard; have a look through it to see if it supports anything like what you want.
prabu padmanathan
Greenhorn

Joined: Dec 07, 2007
Posts: 5
Thank you for the reply paul , i have found a solution to rotate the text in vertical (90 degrees...) , we can embed the tag SVG


<fo:instream-foreign-object>
<svg:svg width="100px" height="100px" xmlns:svg="http://www.w3.org/2000/svg">
<svg:g>
<svg:text x="-80" y="20" transform="rotate(270)">Hello World</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>



Thanks
Prabu
 
Don't get me started about those stupid light bulbs.
 
subject: Vertical text in PDF using FOP