Scripting PDFClerk Pro
PDFClerk Pro is largely, though not fully scriptable with Applescript (and Ruby, and Python, using the appropriate scripting bridges). Scripters should consult the PDFClerk Pro scripting dictionary to inform themselves of its scripting capabilities.
Some scripting examples:
tell application "PDFClerk Pro"
tell page 1
tell document 1
set theLine to make new dynamic line with properties {bounds:{200, 100, 80, 120}, modification date:(current date) - 2 * weeks + 2 * hours - 9 * minutes, should display:yes, should print:no, color:{30000, 10000, 60000}, contents:"Hello world!"}
set formField to make new form field with properties {bounds:{40, 400, 164, 24}, maximum length:4, string value:"My default", field name:"R2d2"}
end tell
end tell
end tell
tell application "PDFClerk Pro"
set scriptingAlias to alias "Hard Disk:Users:guest:Desktop:scripting.pdfp"
open scriptingAlias
tell document 1
set p1 to page 1
set p2 to make new page with properties {label:"kha"}
tell p1
set link1 to the first dynamic annotation
tell the action of the first dynamic annotation to set the destination to {page:p1, target point:{11, 12}}
set d0 to the destination of the action of the first dynamic annotation
tell the first dynamic annotation
set theAction to the action
set actionClass to the class of theAction
set t to the action type of theAction
if t is "URL" or t is "URI" then
set u to the URL of theAction
else if t is "GoTo" then
tell theAction
set the destination to {page:p2, target point:{7, 9}}
set d1 to the destination
set the destination to {page:p1, target point:{100, 250}}
set d2 to the destination
end tell
else if t is "GoToR" then
set pageIndex to the page index of theAction
set pt to the point of theAction
set u to the URL of theAction
set the point of theAction to {10, 20}
end if
end tell
end tell
end tell
end tell