sarduspater
Programmer
Using an example I tried to obtain to save a pdf file in txt format within acrobat 8 professional.
This is the code:
mySaveAs = app.trustPropagatorFunction(function(doc, path, type)
{
app.beginPriv();
doc.saveAs(path, type);
app.endPriv();
});
mySaveDoc = app.trustedFunction( function (doc, path, type)
{
app.beginPriv();
mySaveAs(doc, path, type);
app.endPriv();
});
JavaScript console of Acrobat says:
TypeError: doc.saveAs is not a function
4:Folder-Level:App:mySaveAs.js
What's wrong?
Thanks in advance
Candu si tene su 'entu es prezisu bentolare.
This is the code:
mySaveAs = app.trustPropagatorFunction(function(doc, path, type)
{
app.beginPriv();
doc.saveAs(path, type);
app.endPriv();
});
mySaveDoc = app.trustedFunction( function (doc, path, type)
{
app.beginPriv();
mySaveAs(doc, path, type);
app.endPriv();
});
JavaScript console of Acrobat says:
TypeError: doc.saveAs is not a function
4:Folder-Level:App:mySaveAs.js
What's wrong?
Thanks in advance
Candu si tene su 'entu es prezisu bentolare.