It's not a secret anymore!
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


Win a copy of Building Microservices this week in the Design forum!
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
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Vertical text in PDF using FOP
 
It's not a secret anymore!