Skip to main content
Kcabien
Participant
June 26, 2017
Question

Header and Footer - Document Title

  • June 26, 2017
  • 4 replies
  • 4066 views

Hi I would like to create an action wizard which inserts the pdf document name in the header of the scanned pdf document.

I have noticed that when you enter the page number command it uses << >> signs to read the text as a command.

What is the command that needs to be written in the header or footer to insert the pdf document title / name i.e. the highlighted in this example, title.pdf

This topic has been closed for replies.

4 replies

Thom Parker
Community Expert
Community Expert
January 15, 2020

You can find a free Action here that creates header/footer

https://acrobatusers.com/actions-exchange/

 

It's called The File Name Stamper

 

You can get a more sophisticated version of this here:

https://www.pdfscripting.com/public/Automation-Tool-Descriptions.cfm

but it's not free.

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
mirza5313
Known Participant
January 12, 2020

This is pretty simple: please see this video:

https://www.youtube.com/watch?v=XRTeJphwIdY

Bernd Alheit
Community Expert
Community Expert
January 12, 2020

This will not work in Adobe Acrobat.

Kcabien
KcabienAuthor
Participant
June 26, 2017

Adobe specifies in their online help that the title can be part of the headers.

Below is the link...

Add headers, footers, and Bates numbering to PDFs, Adobe Acrobat

How can that be done without a script?

try67
Community Expert
Community Expert
June 26, 2017

I can't speak for them, but I think they mean you can add it manually... I don't see a way of doing it automatically with the built-in command.

try67
Community Expert
Community Expert
June 26, 2017

There isn't one. You will need to do it using a script.

try67
Community Expert
Community Expert
June 26, 2017

By the way, I've developed an advanced version of the Add Header/Footer command that allows you to do that (among many other things), but it can't be used as a part of an Action (although that's probably something I could add for you, if you're interested).

You can find it here: Custom-made Adobe Scripts: Acrobat/Reader -- Advanced Add Header/Footer Text