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

Multiple Headers/Footers

jkwrabbit
Registered: Mar 19 2009
Posts: 3

I have created a PDF from multiple Word documents. I added a header/footer in the PDF by telling it I wanted an additional header/footer (there was one already existing in the Word document). Everything worked fine.

The problem: When I need to edit the PDF footer, no matter what choice I make, it wipes out the original header/footer from the Word document. I am using Acrobat 9.0.

Any ideas?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The headers, footers, and watermarks that Acrobat places in a PDF are all setup as Optional Content Groups (OCG), also called Layers. This is how Acrobat identifies and manipulates them, through the OCG name. It's just a matter of how they set things up that you can't have multiple headers/footers.

But there is a way around the issue, and that's to rename the Footer OCG. So first, run this code from the Acrobat JavaScript Console Window. It will expose the existing layers in the "Layers" navigation window.

this.setOCGOrder(this.getOCGs());

From the Layers window you can rename and merge the layers so that you can add new headers/footers without overwritting the old ones.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

slang75
Registered: Apr 22 2009
Posts: 15
I am having the exact same problem, I never had this problem using Acrobat 7. I am using Acrobat 8. I have various contracts with different footers done in MS Word, then I combined them to a final package using Acrobat and add a final footer. Even a header will remove the existing footers. Is there not an easier way to do this?