Skewed scanned PDF
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I have recently scanned a book into a 600 page PDF file. However the pages are randomly skewed/rotated clockwise or counterclockwise. Any software to automatically correct this ? I know Acrobat Pro can, but any free Ubuntu software / script ?
software-recommendation pdf
add a comment |Â
up vote
1
down vote
favorite
I have recently scanned a book into a 600 page PDF file. However the pages are randomly skewed/rotated clockwise or counterclockwise. Any software to automatically correct this ? I know Acrobat Pro can, but any free Ubuntu software / script ?
software-recommendation pdf
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have recently scanned a book into a 600 page PDF file. However the pages are randomly skewed/rotated clockwise or counterclockwise. Any software to automatically correct this ? I know Acrobat Pro can, but any free Ubuntu software / script ?
software-recommendation pdf
I have recently scanned a book into a 600 page PDF file. However the pages are randomly skewed/rotated clockwise or counterclockwise. Any software to automatically correct this ? I know Acrobat Pro can, but any free Ubuntu software / script ?
software-recommendation pdf
edited Apr 26 at 23:57
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
Emily
612317
612317
asked Apr 26 at 18:54
Allan Ripley
62
62
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Do you mean skewedâÂÂas in, stretched in some way, like this:
âÂÂor rotated?
I'm assuming you mean rotated, since I honestly don't think it's possible for your scanner to mess the image up that badly!
If you just need to rotate, I would recommend PDF-Shuffler, a GUI-based program that can make the process of going through each page and rotating them as necessary a lot less painful. Have a look. And I'm sure there are other programs that could do the same thing.
Unfortunately, I don't know of any software that can look over all the pages in your PDF and decide for you which ones need to be transformed in some complex way, let alone rotated.
EDIT: If your file was a native pdf that could be converted into postscript (.ps) format, I think it's possible there is a way to autorotate pages using ghostscript. However, to my knowledge, you can't do this with scanned pages, because the auto-rotate feature relies on interpretation of text direction, which can only come from a native pdf or ps document. I'm not completely sure...I will look into this a little more.
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Do you mean skewedâÂÂas in, stretched in some way, like this:
âÂÂor rotated?
I'm assuming you mean rotated, since I honestly don't think it's possible for your scanner to mess the image up that badly!
If you just need to rotate, I would recommend PDF-Shuffler, a GUI-based program that can make the process of going through each page and rotating them as necessary a lot less painful. Have a look. And I'm sure there are other programs that could do the same thing.
Unfortunately, I don't know of any software that can look over all the pages in your PDF and decide for you which ones need to be transformed in some complex way, let alone rotated.
EDIT: If your file was a native pdf that could be converted into postscript (.ps) format, I think it's possible there is a way to autorotate pages using ghostscript. However, to my knowledge, you can't do this with scanned pages, because the auto-rotate feature relies on interpretation of text direction, which can only come from a native pdf or ps document. I'm not completely sure...I will look into this a little more.
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
add a comment |Â
up vote
1
down vote
Do you mean skewedâÂÂas in, stretched in some way, like this:
âÂÂor rotated?
I'm assuming you mean rotated, since I honestly don't think it's possible for your scanner to mess the image up that badly!
If you just need to rotate, I would recommend PDF-Shuffler, a GUI-based program that can make the process of going through each page and rotating them as necessary a lot less painful. Have a look. And I'm sure there are other programs that could do the same thing.
Unfortunately, I don't know of any software that can look over all the pages in your PDF and decide for you which ones need to be transformed in some complex way, let alone rotated.
EDIT: If your file was a native pdf that could be converted into postscript (.ps) format, I think it's possible there is a way to autorotate pages using ghostscript. However, to my knowledge, you can't do this with scanned pages, because the auto-rotate feature relies on interpretation of text direction, which can only come from a native pdf or ps document. I'm not completely sure...I will look into this a little more.
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Do you mean skewedâÂÂas in, stretched in some way, like this:
âÂÂor rotated?
I'm assuming you mean rotated, since I honestly don't think it's possible for your scanner to mess the image up that badly!
If you just need to rotate, I would recommend PDF-Shuffler, a GUI-based program that can make the process of going through each page and rotating them as necessary a lot less painful. Have a look. And I'm sure there are other programs that could do the same thing.
Unfortunately, I don't know of any software that can look over all the pages in your PDF and decide for you which ones need to be transformed in some complex way, let alone rotated.
EDIT: If your file was a native pdf that could be converted into postscript (.ps) format, I think it's possible there is a way to autorotate pages using ghostscript. However, to my knowledge, you can't do this with scanned pages, because the auto-rotate feature relies on interpretation of text direction, which can only come from a native pdf or ps document. I'm not completely sure...I will look into this a little more.
Do you mean skewedâÂÂas in, stretched in some way, like this:
âÂÂor rotated?
I'm assuming you mean rotated, since I honestly don't think it's possible for your scanner to mess the image up that badly!
If you just need to rotate, I would recommend PDF-Shuffler, a GUI-based program that can make the process of going through each page and rotating them as necessary a lot less painful. Have a look. And I'm sure there are other programs that could do the same thing.
Unfortunately, I don't know of any software that can look over all the pages in your PDF and decide for you which ones need to be transformed in some complex way, let alone rotated.
EDIT: If your file was a native pdf that could be converted into postscript (.ps) format, I think it's possible there is a way to autorotate pages using ghostscript. However, to my knowledge, you can't do this with scanned pages, because the auto-rotate feature relies on interpretation of text direction, which can only come from a native pdf or ps document. I'm not completely sure...I will look into this a little more.
edited Apr 27 at 14:29
answered Apr 26 at 20:19
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
![](https://i.stack.imgur.com/zLEKM.jpg?s=32&g=1)
Emily
612317
612317
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
add a comment |Â
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
Should actually be a fairly solvable problem. Text typically has a right margin, which is mostly straight, with few figures outside this.
â vidarlo
Apr 27 at 15:03
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
@vidarlo, that's a good point. Sadly, I don't know how to write that script myself :(. It makes me think, though, that it if the asker didn't mind exporting all the pages to individual files, s/he could easily use a preexisting GIMP script to autorotate each page, then merge the pages back into one single pdf with pdftk or even with GIMP's export as mng, then command line convert mng to pdf.
â Emily
Apr 27 at 15:37
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028507%2fskewed-scanned-pdf%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password