html to pdf - Rotate text with flying saucer to pdf -


i´m using flying saucer , itext convert html pdf, in order write text in vertical orientation, try simple css:

style="writing-mode: tb-rl"; 

the transform rotations browsers:

transform: rotate(270deg)!important;   -ms-transform:rotate(270deg); /* ie 9 */ -moz-transform:rotate(270deg); /* firefox */ -webkit-transform:rotate(270deg); /* safari , chrome */ -o-transform:rotate(270deg); /* opera */ filter: progid:dximagetransform.microsoft.basicimage(rotation=3); progid:dximagetransform.microsoft.matrix(sizingmethod='auto expand', m11=0.7071067811865476, m12=-0.7071067811865475, m21=0.7071067811865475, m22=0.7071067811865476); /* ie6,ie7 */ -ms-filter: "progid:dximagetransform.microsoft.matrix(sizingmethod='auto expand', m11=0.7071067811865476, m12=-0.7071067811865475, m21=0.7071067811865475, m22=0.7071067811865476)"; /* ie8 */ 

but no success... :(

same 1 know how rotate html text, flying saucer , itext?

thanks in advance :)

i've been doing digging around. flyingsaucer user forums, seems transform property not supported yet. should easier implement not affect layout.

if not interested in digging source, can implement replaced element take in data, convert svg , use in layout. here few examples of similar usage barcode. http://andreas.haufler.info/2012/12/generating-barcodes-in-pdfs-with-flying.html

there code example here - using flying saucer render images pdf in memory

using browser-engine backed libraries phantomjs might not ideal when entire application in java.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -