Sep 24, 2013; 18:59
David Bergkvist
Unable to rotate text in PDF
I'm on Lasso 8.5.6 on Mac and trying to rotate text in a PDF I let Lasso create but with no luck.
I found a thread about something similar and in a post dated 2010-02-26 where Bil Corry finds a solution to a problem that Jolle had.
I have tried the code Bil put out and yes, I get it to rotate a PDF page that is included. But when I modify it and try to use the same code to rotate text it all comes out horizontal.
This is the code I use:
[
var('pdfinsert') = pdf_read(-file='testpdf.pdf');
var('pdf' = pdf_doc(
-nocompress,
-size = 'A4',
-title = 'Example',
-margins = array( 50,50,50,50)
));
loop(-from=0, -to=90, -by=5);
$pdf -> insertpage( $pdfinsert, 1,
-top = 0,
-left = 300,
-width = string(100+loop_count)+'%',
-height = string(100+loop_count)+'%',
-rotate=loop_count);
/loop;
loop(-from=0, -to=90, -by=5);
$pdf -> add( 'Text goes here',
-top = 0,
-left = 300,
-width = string(100+loop_count)+'%',
-height = string(100+loop_count)+'%',
-rotate=loop_count);
/loop;
$pdf -> close;
pdf_serve( -content = $pdf, -file = 'example.pdf', -inline);
]
There need to be a PDF with some text in it called "testpdf.pdf".
The second loop is added by me and it don't work, it just comes out horizontal.
I don't need to add a PDF and rotate it, I only need to place text in a given top/left position that is rotated 90 degees.
All suggestions (apart from upgrading to Lasso 9) would be great!
Thank you!
/David Bergkvist
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Sep 24, 2013; 17:04
Jolle Carlestam
Re: Unable to rotate text in PDF
Sep 24, 2013; 17:17
Jolle Carlestam
Re: Unable to rotate text in PDF
Sep 24, 2013; 19:18
David Bergkvist
Re: Unable to rotate text in PDF
Sep 24, 2013; 17:21
Jolle Carlestam
Re: Unable to rotate text in PDF
Sep 25, 2013; 04:39
Rick Draper
RE: Unable to rotate text in PDF