Is it possible to automatically print filename in a pdf file?

I need to print the filename to my pdf (in the header or footer). I'm using Adobe Reader, but i can also use Foxit pdf reader or anyother free pdf reader. Is it possible to do this?

3,075 5 5 gold badges 32 32 silver badges 48 48 bronze badges asked Jul 23, 2012 at 7:40 1,433 4 4 gold badges 20 20 silver badges 34 34 bronze badges

if you're willing to use the command line and install ghostscript and pdftk , the related Print PDF file with file path in footer has usable answers.

Commented Feb 4, 2013 at 20:40

6 Answers 6

To the late googlers, I made a program that will do this for free, sourcecode included:
Youtube video
Site
Download link

1,336 5 5 gold badges 18 18 silver badges 33 33 bronze badges answered Jan 19, 2016 at 23:04 user3263609 user3263609 31 2 2 bronze badges

Yes, you can use Adobe Reader by writing a filename in notes:

  1. Add a Sticky note
  2. Write a filename
  3. Go to Comments and then to the option icon
  4. Go to Comments preferences
  5. Mark "Print notes and pop-ups".

I'm using portuguese written Adobe Reader, so it maybe not be exactly like an english one.

28.2k 8 8 gold badges 88 88 silver badges 97 97 bronze badges answered May 16, 2013 at 12:56 11 1 1 bronze badge

I have no experience with Foxit, however I can confirm this capability does not exist in Adobe Reader.

It is very simple in Adobe Acrobat, if you can access that software. Tools->Header and Footer->Add Header and footer.

answered Sep 12, 2012 at 13:48 1,035 9 9 silver badges 27 27 bronze badges

if you are willing to use a commercial application:

  1. Go to the Get More Editor
  2. Click "Insert text with parameters"
  3. Add "Print job name"

enter image description here

answered Nov 9, 2015 at 19:22 400 4 4 gold badges 13 13 silver badges 25 25 bronze badges

I know this may be a bit of a late response:

Irfanview https://www.irfanview.com/ is a image editor and PDF viewer. I have been using it for various reasons for 15 years or more, most recently to convert PDF pages to JPG format.

In the Print dialog (when printing a PDF) you can add a header with $D for directory and $F for filename to print the directory and filename automatically. These options will apply to subsequent prints of new files until removed by the user.