• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can Acrobat PDF's be saved as single pages via Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can Acrobat PDF's be saved as single pages via Applescript


  • Subject: Re: Can Acrobat PDF's be saved as single pages via Applescript
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 09 Jan 2017 07:52:47 +1100

PS.

In case anyones wants too know, here’s how add text boxes to PDF’s in Acrobat.

# This handler uses _javascript_
#
on Add_WaterMarkText_(temp)
try
local cName, cText, cFont, nFontSize, nS, nE, nTA, nHorizontalAlignment, nVerticalAlignment, nHorizontalWidth, nVerticalHeight, nR, currentPage


set p to 1
set {cName, cText, cFont, nFontSize, nS, nE, nTA, nHorizontalAlignment, nVerticalAlignment, nHorizontalWidth, nVerticalHeight, nR, currentPage} to temp as list
set p to 2
set Params to "" as text
set p to 3
set Params to Params & "var f = this.addField(\"" & cName & "\", " & "\"" & "text" & "\", " & currentPage - 1 & ", [" & nHorizontalAlignment & ", " & nVerticalAlignment & ", " & nHorizontalAlignment + nHorizontalWidth & ", " & nVerticalAlignment - nVerticalHeight & "]" & ");" & return as text
set p to 4
set Params to Params & "f.value = \"" & cText & "\";" & return as text
set p to 5
set Params to Params & "f.userName = \"" & cName & "\";" & return as text
set p to 6
set Params to Params & "f.textSize = " & nFontSize & ";" & return as text
set p to 7
set Params to Params & "f.textFont =  \"" & cFont & "\";" & return as text
set p to 8
set Params to Params & "f.alignment = \"" & "left" & "\";" & return as text
set p to 9
set Params to Params & "f.multiline = false;" & return as text
set p to 10
set Params to Params & "f.lineWidth = 0;" & return as text
set p to 11
set Params to Params & "f.display = display.visible;" & return as text
set p to 12
set Params to Params & "f.textColor = color.black;" & return as text
# set _javascript_ to Params
on error errmsg
set temp to "Add_WaterMarkText error " & errmsg & " Text is " & cText as text
my writeFile4("MMErrorsList", (temp & return & return as text))
tell application "System Events" to display dialog temp giving up after 20
# if RunForOz then tell application "System Events" to display dialog temp giving up after 36000
end try
return Params as text
end Add_WaterMarkText_

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Can Acrobat PDF's be saved as single pages via Applescript (From: Brian Christmas <email@hidden>)
 >Re: Can Acrobat PDF's be saved as single pages via Applescript (From: Yvan KOENIG <email@hidden>)
 >Re: Can Acrobat PDF's be saved as single pages via Applescript (From: Brian Christmas <email@hidden>)
 >Re: Can Acrobat PDF's be saved as single pages via Applescript (From: Shane Stanley <email@hidden>)
 >Re: Can Acrobat PDF's be saved as single pages via Applescript (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Can Acrobat PDF's be saved as single pages via Applescript
  • Next by Date: Acrobat PDF cropping script.
  • Previous by thread: Re: Can Acrobat PDF's be saved as single pages via Applescript
  • Next by thread: Re: Can Acrobat PDF's be saved as single pages via Applescript
  • Index(es):
    • Date
    • Thread