These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

print other field if not filled in within the reader application

AdobeNDN
Registered: Oct 2 2007
Posts: 22

Here is what I want.

A form that has a radio button that prints when filled in with the reader application.

But when the user does not fill in the form in Reader but just prints it off to fill out by hand those radio buttons disappear and leave a line to place a check mark.

Is there any way to do this?

tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
You can use the viewerType object on the Radio Button field:

// is Reader (as opposed to Acrobat)
if (typeof(app.viewerType) != "undefined")
if (app.viewerType == "Reader")
{
this.print (false, this.pageNum, this.pageNum, {bShinkToFit: true});
}
else {
// do nothing.
}

Above contains some options for printing the file. Consult the JS Specification manual for other toggles you can assign to the print command.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.