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

Export.fdf is not getting created with a document is updated

reshma.gyadav
Registered: Jan 25 2007
Posts: 7

I'm working on Acrobat 5.*, 6.*, 7.* version. Before opening a docuemnt I create a xxx.Js file in \\Javascript folder. wherein I wrote a code to a add a hiddden menu item(Code mention @ end of the post). Before openning a document I manually create import.fdf which is read by Acrobat and docuement is created/open for editing. when I edit the document, on save export.fdf file is created. This is a normal workflow which I follow to create/edit a User define Acrodat docuement vai our application.

Problem: The above mentaintioned workflow works properly for many document but for few document it is not working properly. On save export.fdf file is not getting created as a result i'm not able to edit a document. This problem is reproducible only at customer end (Acrobate version 7) So cannot even delete a document and create a new one.

Can you please give me a work around which will allow me/later user to edit document.
======================================================
//code to add hidden menu item.
try
{
trusted_ImportAsFDF = app.trustedFunction
(
function()
{
app.beginPriv();
this.importAnFDF('import.fdf');
app.endPriv();
}

)
app.addMenuItem({ cName: 'IMPORT', cParent: 'File', cExec: 'ClearLeistung();AddDiagnose(); trusted_ImportAsFDF(); this.dirty=1;var DiagValidate = true; ' , nPos: 0});

}
catch(e)
{
app.addMenuItem({ cName: 'IMPORT', cParent: 'File', cExec: " ClearLeistung(); AddDiagnose(); this.importAnFDF('import.fdf'); this.dirty=1;var DiagValidate = true;" , nPos: 0});
}
app.hideMenuItem('IMPORT');

try
{
trusted_ExportAsFDF = app.trustedFunction
(
function()
{
app.beginPriv();
this.exportAsFDF({bAllFields: true, bNoPassword: false, cPath: 'export.fdf'});
app.endPriv();
}

)
app.addMenuItem({ cName: 'ExportAsFDF', cParent: 'File', cExec: ' trusted_ExportAsFDF();' , nPos: 0});

}
catch(e)
{
app.addMenuItem({ cName: 'ExportAsFDF', cParent: 'File', cExec: "this.exportAsFDF({bAllFields: true, bNoPassword: false, cPath: 'export.fdf'});" , nPos: 0});
}
app.hideMenuItem('ExportAsFDF');

app.addMenuItem({ cName: 'Flatten', cParent: 'File', cExec: '' , nPos: 0});
app.hideMenuItem('Flatten');

=======================================================

My Product Information:
Acrobat Standard 5.x or older, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Does the user see any error messages?

George
reshma.gyadav
Registered: Jan 25 2007
Posts: 7
No :(
On save it just grey out the save button....