TOP
TIPS - July 2013
How to rotate
pdf's to the correct orientation automatically
NOTE: Since 2021 we now have a desktop product for
doing this in human readable orientation automatically.
see
Batch PDF Flip 360 Products
required in this tip are:
PDF Rotate Pages v1.06 or greater
The way this works is it detects that
the horizontal is greater than the vertical size page, so rotates that
page to the given value e.g. 90 or 270 degrees. so all pdf's pages
output will then be portrait orientation. if the page is already
portrait then it will leave that page alone.
1. Download PDF Rotate Pages:
//www.traction-software.co.uk/downloads/servertools/winpdfrotatepages.zip
Extract to folder: c:\ drive so you end up with folder:
C:\winpdfrotatepages\
2. To run
Go into DOS and type command:- (replacing c:\yourfile.pdf)
CD "C:\winpdfrotatepages\"
PDFRotatePages -ic:\yourfile.pdf -oc:\yourfile-out.pdf -r90 -smart
This will create a new
c:\yourfile-out.pdf automatically rotated.
3. To run a list of files do:-
CD "c:\where your pdf files are"
dir /B *.pdf > list.txt
C:\winpdfrotatepages\PDFRotatePages -ilist.txt -fout -smart -r90
How to Automate this process from a user interface
(see screen shot below)
Products
required are:
Rapid PDF Count v3 or greater and PDF Rotate Pages 1.06 or greater
(see above)

1. Install and add your PDF files to the Rapid PDF Count
interface.
2. Go into Reports & Scripts menu-->Run/Create/Save script on
all files
3. In the script to start with enter:-
CD "C:\winpdfrotatepages\"
In the script for every file enter:-
mkdir "[FILEPATH]\rotated"
PDFRotatePages -i"[FILENAME]" -o"[FILEPATH]\rotated\[FILETITLE]" -r90
-smart
For testing/first time In the script end with enter:-
pause
So it should look like this:-

4. Click File menu-->Save As Script. (This can be loaded for
next time)
5. click Run as DOS script. (in dos console: press any
key when done)
|