Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Determine XDP or PDF w/ JavaScript

Ryan_Lunka
Level 5
Level 5
I have the requirement to pick up whether a form is a PDF or an XDP using JavaScript. The same form gets saved as each format, but there are few objects that are hidden in the PDF. Instead of manually making those changes every time the form gets saved, it would be better to just script the change so it is always reflected (and no one, down the road, will forget).



Any ideas on how to do this? I've been going through the JavaScript for Acrobat API, but can't find anything.



Thanks!



Ryan D. Lunka

Cardinal Solutions Group

rlunka@cardinalsolutions.com
1 Reply
pguerett
Level 10
Level 10
I am not sure I follow...javascript will only execute when the form is rendered at runtime. By the time script is executing it will already be a PDF....am I missing something?