Deskew in PDF or TIF
-
- Posts: 3
- Joined: 2012-05-11T06:51:02-07:00
- Authentication code: 13
Deskew in PDF or TIF
I need to do Deskew multipage PDF images, how do or else using the imagick for PHP?
Re: Deskew in PDF or TIF
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();
?>
-
- Posts: 3
- Joined: 2012-05-11T06:51:02-07:00
- Authentication code: 13
Re: Deskew in PDF or TIF
The file test is single page
I tried using the code you gave but it's just an error on the line
could you tell me what to do to fix the problem?
I tried using the code you gave but it's just an error on the line
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(); ?>
Re: Deskew in PDF or TIF
What is the error?
Do you have ghostscript installed?
Do you have ghostscript installed?