[Perl-pdf-devel] Solutions to Page Rotation, Landscape and Parenthesis
Status: Beta
Brought to you by:
ftassin
From: Christopher H. <ch...@ch...> - 2002-01-11 18:56:20
|
I was trying to get Landscape pages to work, so I first tried page rotation. But my $page = $root->new_page( 'Rotate' => 90 ); complained that it wanted an array ref, so i tried my $page = $root->new_page( 'Rotate' => [ 90 ] ); which complained that 90 wasn't a valid data type. I went traipsing through the code and tried a few things. I couldn't get a stack dump, so i don't know where the problem really stems from, but my $page = $root->new_page( 'Rotate' => [ 'number',90 ] ); seemed to coax the rotation through and actually work. BUT, this didn't make my pages come out in Landscape as I had hoped. Luckily flipping the last two bounding box parameters seemed to work fine. It seems a bit odd to me that Acrobat shows the page as still printing in Portrait if you go into File -> "Print Setup", but it still displays and prints in Landscape. My earlier parenthesis problem was remedied by upgrading to the SF version. (I upgraded while trying to fix the first problem above.) I tried the whole character set to experiment further. All worked well except for the backslash which I had to escape with an extra backslash. Bru-hahahaha! I'm happy. -- </chris> Neither sweat, nor blood, nor frustration, or lousy manuals nor missing parts, or wrong parts shall keep me from my task. |