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 
		      set formField to make new form field with properties 
		    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 
		        tell p1
		            set link1 to the first dynamic annotation
		            tell the action of the first dynamic annotation to set the destination to 
		            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 
		                        set d1 to the destination
		                        set the destination to 
		                        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 
		                end if
		            end tell
		        end tell
		    end tell
		end tell