PDF Filename on PDF

Community Beginner ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Hello

We are saving our purchase invoices in PDF on our server.

I would like to know if possible : upon renaming the PDF file or grouping Pages together : to put the Filename (invoice number) on all pages.

Like PDF filename = FAF200001. Have "FAF200001" on all pages.

TOPICS
Feature request

Views

308

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Adobe Acrobat can header and footer.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

How to do it ? Thank in advance,

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

I moved your post from the Get Started forum to the Program Specific forum,

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

If you want the header/footer text to update when you rename the file, though, then you can't use a built-in function to add them.

The solution is to use a (read-only) text field and a script to update its value each time the file is opened.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Thank you.

does it mean that the value is stored inside pdf (inside data table) or appearing upon reading (loading mask view) ?

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

The value of the field is stored inside the PDF but is updated each time you open the file file.

You can do by placing the following code under Tools - JavaScript - Document JavaScripts (let's say the field you added is called FileName):

 

this.getField("FileName").value = this.documentFileName.replace(".pdf", "");

 

Edit: Fixed small mistake in the code.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Hello, 

Thank you. I am not familiar on Adobe/Javascript. I tried but didn't work out.

I think I would need a developper to do this.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

Feel free to contact me privately via [try6767 at gmail.com] to discuss it further.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines