Subject: | page->open() corrupts PDF |
The problem is, that if a 'Rotate' of 270 is set in the pdf then the pdf was empty after a $pdf->update . It was not realy empty but the content was rotatet out of the mediabox.
The error and the solution are:
File API2.pm line 725
original :
elsif($rotate==270) {
$trans="-1 0 0 -1 $media->[3] 0 cm" if($mediatype eq 'MediaBox');
corrected is must be:
elsif($rotate==270) {
$trans=" 0 1 -1 0 $media->[3] 0 cm" if($mediatype eq 'MediaBox');
With this fix it's ok
Greetings Matthias