Search code examples
acrobatpdf-formacrobat-sdk

saveAs is not a function


I have a button in acrobat form with below script in the Mouse Down.

try
{
  app.saveAs("/c/temp/11.pdf");
}
catch(err)
{
  app.alert(err.message);
}

when I click on the button I get message box says

app.saveAs is not a function.

What is wrong?


Solution

  • You want doc.saveAs() See tutorial: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript