0

I put the line

app.execMenuItem("ZoomViewOut");

into my PDF document's JavaScript section like this:

Document JavaScript

It turns up in the general JavaScript section like this:

//-------------------------------------------------------------
//-----------------Do not edit the XML tags--------------------
//-------------------------------------------------------------

//<Document-Level>
//<ACRO_source>Zoom Out</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:Zoom Out ***********/
app.execMenuItem("ZoomViewOut");
//</ACRO_script>
//</Document-Level>

But it is not executed. Instead, it throws a "bad parameter" error:

bad parameter error

I believe however that it should work, since the command is in the safe commands list:

safe commands list

...as described in the Adobe JavaScript Reference Manual on p. 93:

Adobe JavaScript Reference Manual

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.