Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.hp.hardware > #349

Re: Scanned PDF is always crooked (need to rotate PDF a degree or three)

From Peter Flynn <peter@silmaril.ie>
Newsgroups alt.comp.freeware, comp.sys.hp.hardware, comp.text.pdf
Subject Re: Scanned PDF is always crooked (need to rotate PDF a degree or three)
Date 2013-10-10 21:25 +0100
Organization Usenet Labs Bozon Detector Facility
Message-ID <bbogqkF2bh9U1@mid.individual.net> (permalink)
References <l321uf$fn7$1@news.mixmin.net>

Cross-posted to 3 groups.

Show all headers | View raw


On 10/08/2013 11:45 PM, Fran Jones wrote:
> My HP Laserjet 3200m printer/scanner often scans pages off kilter.
> It's noticeable, but slight (maybe a couple of degrees).
> 
> If it were a JPEG, I could use The Gimp freeware to straighten
> but it's a PDF. If I must, I could scan to JPEG and then use
> cutePDF freeware or Adobe Acrobat 6.0 Standard payware to then
> print the straightened JPG to PDF - but that seems convoluted.
> 
> Is there freeware that will rotate a PDF page by just a degree
> or three (just like The Gimp rotates an image)?

The PDF is just an enclosure. The image is inside it. What you need to
do is extract the image, rotate it, and recreate the PDF, eg

$ pdfimages -j scanfile.pdf scan
$ convert scan-001.jpg -rotate 2 scanfile.pdf

pdfimages is part of the Poppler Utilities; the -j forces JPG output;
the third argument is a base-name for the extracted image (images lose
their names when you embed them in a PDF, so they need naming when they
are extracted). The first (or only) file will use this base-name plus a
hyphen and a serial number starting at 1, plus the extension.
convert is the ImageMagick conversion program.

///Peter


Back to comp.sys.hp.hardware | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Scanned PDF is always crooked (need to rotate PDF a degree or three) Fran Jones <FranJones@is.invalid> - 2013-10-08 22:45 +0000
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or  three) Robert Heller <heller@deepsoft.com> - 2013-10-08 19:45 -0500
    Re: Scanned PDF is always crooked (need to rotate PDF a degree or  three) sandy <sandy@is.invalid> - 2013-10-09 18:58 +0000
      Re: Scanned PDF is always crooked (need to rotate PDF a degree or  three) Joe Beanfish <joebeanfish@nospam.duh> - 2013-10-11 13:07 +0000
        Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) Axel Berger <Axel.Berger@Gmx.De> - 2013-10-11 22:00 +0200
          Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) Joe Beanfish <joebeanfish@nospam.duh> - 2013-10-14 13:20 +0000
            Re: Scanned PDF is always crooked (need to rotate PDF a degree orthree) Axel Berger <Axel.Berger@Gmx.De> - 2013-10-14 18:45 +0200
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or   three) Peter Flynn <peter@silmaril.ie> - 2013-10-10 21:25 +0100
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) occam <occam@127.0.0.1> - 2013-10-11 08:05 +0200
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) yufan <steven1831@yahoo.com> - 2013-10-11 12:02 +0800
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) yufan <steven1831@yahoo.com> - 2013-10-11 11:56 +0800
  Re: Scanned PDF is always crooked (need to rotate PDF a degree or three) tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-02-15 15:30 -0500

csiph-web