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

Delete headers

acoderre
Registered: Oct 22 2007
Posts: 2

Hi,
 
I need to destroy all the headers of pdf files in a directory. I included COMP:RemoveHeadFoot in the registry but I cant get the menu window poping in the batch script.
 
The function in congig.js : myTrustedMenu = app.trustedFunction( function( name )
{
app.beginPriv();
app.execMenuItem(name);
app.endPriv();
});
 
and my batch file : myTrustedMenu("COMP:RemoveHeadFoot");
 
Thanks for your help )

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
SimonATS
Expert
Registered: Jul 26 2007
Posts: 49
Instead of using a JS, why not create a new sequence via the Gui, adding empty headers and footers to a PDF. This will overwrite any headers and footers added with Acrobat.

EMEA Acrobat Technical Support