Skip to content

Instantly share code, notes, and snippets.

@justin
Created July 12, 2010 20:55
Show Gist options
  • Save justin/473042 to your computer and use it in GitHub Desktop.
Save justin/473042 to your computer and use it in GitHub Desktop.
-- This script places a page number in the bottom left corner of each page.
tell application "PDFpenPro"
if (count documents) > 0 then
set pageCount to count (pages of document 1)
repeat with pageNumber from 1 to pageCount
set thePage to page pageNumber of document 1
set theImprint to make new text imprint at end of imprints of thePage with properties {rich text:pageNumber as rich text, x position:36, y position:36, height:16, width:30}
set font of attribute run 1 of rich text of theImprint to "LucidaGrande-Bold"
end repeat
return pageCount
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment