Determine XDP or PDF w/ JavaScript

Avatar

Avatar
Validate 1
Level 4
Ryan_Lunka
Level 4

Likes

11 likes

Total Posts

143 posts

Correct reply

11 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
Ryan_Lunka
Level 4

Likes

11 likes

Total Posts

143 posts

Correct reply

11 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Ryan_Lunka
Level 4

28-01-2009

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

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

28-01-2009

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?