Whether or not FOP supports roation of blocks, this markup is incorrect
for two reasons:
1. Reference orientation must be a multiple of 90 degrees (or zero)
2. fo:block cannot be rotated, only fo:block-container
Also, when you rotate a block container 90 degrees you should define a
constant value for the inline progression dimension (IPD), e.g.:
<fo:block-container
reference-orientation="90"
inline-progression-dimension="30mm">
<fo:block>Rotated content goes here</fo:block>
</fo:block-container>
If you don't do this, then the IPD is "auto" which means that the
content will take all the available space, which would normally result
in the content (if it's text), being rendered as a single line taking as
many pages as it needs. Probably not what you want.
If the content is a graphic and you set the content-width then you don't
need to set the IPD because it's inherent in the content of the block
container.
If you want arbitrary rotation of text or graphics you must use
something like SVG (or just make it a graphic), where you can rotate
things any way you want.
Cheers,
Eiot
--
W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(512) 372-8155
ekimber@...
www.innodata-isogen.com
Partager