Script to secure a PDF- "Variable not defined"-- Help! :(
hi! i'm hoping can me problem..
i releasing digital magazine online pdf , looking way secure can't distributed around. found script run , have been trying work keep getting error message:
"error "the variable acrobat not defined." number -2753 from "acrobat" "
i'm not sure if not working because use cloud based version of indesign , acrobat or if running script wrong? downloaded sdk's each program. (i new have been trying bunch of things trying work)
i use adobe indesign cs6 , adobe acrobat pro xi
this script trying run in applescript editor:
tell application "adobe indesign cs6"
-- prefs belong app use in tell app block
tell pdf export preferences
set acrobat compatibility to acrobat
set use security to true
set disallow changing to true
set disallow copying to true
set disallow document assembly to true
set disallow extraction accessibility to true
set disallow form fill in to true
set disallow notes to true
set disallow hi res printing to false
set color bitmap sampling dpi to 100
set grayscale bitmap sampling dpi to 100
set monochrome bitmap sampling dpi to 100
--set image quality
set color bitmap quality to minimum
set grayscale bitmap quality to minimum
--set fonts
set subset fonts below to 0
--set security
set use security to true
set change security password to "editedit"
set disallow extraction accessibility to false
set disallow copying to true
end tell
-- deal doc
tell active document
set docname to pdftest
set basename to text item 1 of docname
set astid to applescript's text item delimiters
set applescript's text item delimiters to "."
set applescript's text item delimiters to astid
-- use flexible path user desktop… path strings hfs (colon delimited)
export format pdf type to "/users/sp19301/desktop/" & pdftest & ".pdf" without showing options
end tell
end tell
if have suggestions on securing pdf or doing wrong script, appreciate much!!
thanks
stephanie
hi,
modify line:
set acrobat compatibility to acrobat 4
// or acrobat 5
// or acrobat 6
// or acrobat 7
// or acrobat 8
rgds
jarek
More discussions in InDesign Scripting
adobe
Comments
Post a Comment