Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vertical text in PDF using FOP

 
prabu padmanathan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic