You are not logged in.

#1 2018-05-25 14:19:12

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Deskew scanned PDF images

I have a scanner connected to my machine which works well, but the resulting PDF files are often slightly tilted.  Is there a program out there that can deskew the PDF pages?  I know Adobe Acrobat does this, but I'm not running that on my Arch machine.

Offline

#2 2018-05-25 14:44:56

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Deskew scanned PDF images

How are you creating the PDF?
As far as I know, ocrmypdf, gscan2pdf and sane-scan-pdf should support deskew. There is also the gimp plugin deskew.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2018-05-25 15:35:46

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: Deskew scanned PDF images

I'm using gscan2pdf, and it often fails to deskew.  That's why I'm looking for an alternative solution.

Offline

#4 2018-05-25 18:04:11

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Deskew scanned PDF images

You could scan as images or extract the images from the PDF, then deskew them with e.g. unpaper (I think gscan2pdf uses that as well), gimp+deskew plugin or deskew and then recreate a pdf afterwards.

Edit: If the deskew binary works better, maybe you can set a user defined command to run it on scanned images in gscan2pdf.

Last edited by progandy (2018-05-25 18:08:54)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2018-05-26 17:45:27

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: Deskew scanned PDF images

Masterpdfeditor in the AUR has a transformation matrix function that can skew - I have not tried it on a scanned image.

Offline

Board footer

Powered by FluxBB