Deskew in PDF or TIF
Posted: 2012-07-03T12:47:19-07:00
I need to do Deskew multipage PDF images, how do or else using the imagick for PHP?
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=21356
Code: Select all
<?php
$im = new Imagick('text.pdf');
$im->deskewImage( 80 );
$im->writeImage( 'deskew.pdf' );
$im->destroy();
?>
Code: Select all
$im->deskewImage (80);
Bonzo wrote:I have not tried a multipage pdf but the method for one page would be:You might have to write a loop to do each page singularly.Code: Select all
<?php $im = new Imagick('text.pdf'); $im->deskewImage( 80 ); $im->writeImage( 'deskew.pdf' ); $im->destroy(); ?>