Skip to content

Instantly share code, notes, and snippets.

@henryroe
Created January 6, 2014 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henryroe/8290831 to your computer and use it in GitHub Desktop.
Save henryroe/8290831 to your computer and use it in GitHub Desktop.
Rotate portrait pages by +90degrees in current document in PDFpenPro 6
# Install this file in:
# ~/Library/Application Scripts/com.smileonmymac.PDFpenPro6.MacAppStore/
# and it will then be accessible from the Applescript menu in PDFpenPro 6
tell application "PDFpenPro 6"
if (count documents) > 0 then
set myDoc to document 1
set pageCount to count pages of myDoc
repeat with pageNumber from 1 to pageCount
if (height of page pageNumber of myDoc) > (width of page pageNumber of myDoc) then
set rotation of page pageNumber of myDoc to 90
end if
end repeat
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment