Skip to main content
Participant
August 30, 2006
Question

Print File Name with pdf Document

  • August 30, 2006
  • 93 replies
  • 245470 views
In order to have an audit trail / track a document, I want to print the file name as a header or footer when printing the documents. How can this be done?
This topic has been closed for replies.

93 replies

Participant
June 25, 2008
I'm having the same problem with the "internal error" message. I am using Reader 8 and have saved the "txt" file created in Notepad to "program files->adobe->Redaer 8.0->Reader->Javascripts". I am using Windows XP.
The Set/Remove Footer option is showing in the "File Menu" in Reader 8.0. However, the internal error occurs whenever i try to click on it.
Any help would definitely be appreciated.
Thanks!
Participant
June 11, 2008
Hi !!

I'll ask to help me.
I search a solution to print a document pdf.
I want to print a pdf's file and close acrobat reader.

Witch the command line, I can open file and print the file. But I can't close the api acrobat reader.

Anyone could say me if there are a solution. Witch a command line or a javascript program or other.

Thanks to your help
ReinhardF
Participating Frequently
June 8, 2008
Write:

var p=p+1

at the end of the for loop.

HTH, Reinhard
Participant
June 6, 2008
How can I just add a footer to odd or even pages only? Here is my code below!

app.addMenuItem({cName:"Training Guide - Insert Footer", cParent:"Document", nPos:3, cExec:"PrtFooter();"});


function PrtFooter()
{
var re = /.*\/|\.pdf$/ig;
var FileNM = this.path.replace(re,"")+"";
for (var p = 3; p < this.numPages; p++)
{
var fd = this.addField("Date", "text", p, [520,45, 670,5]);
fd.textSize=9; fd.readonly=true; fd.value = "" + util.printd("mm/dd/yyyy", new Date())
var fd = this.addField("File", "text", p, [43,45, 250,5]);
fd.textSize=9; fd.readonly=true; fd.value = "" + util.printd("", new Date()) + FileNM
var fp = this.addField(String("page"+p+1), "text", p, [280,45,335,5]);
fp.textSize=9; fp.readonly=true; fp.value = "Page " + String(p+1)+ " of " + this.numPages;
}
}
Participant
January 17, 2008
How can I insert the filename into the header?
Inspiring
October 17, 2007
You are creating a form field and can only use the fonts available to the form field. More information about the use of arbitrary fonts is contained in the Acrobat JavaScript Scripting Reference.
Participant
October 17, 2007
This works great putting the filename to the Header was
Just wondering if there is a way to change the font.
fd.textsize changes the size of the font
Why doesn't fd.textfont="Broadway" change the font.
I Need it to printout a specila type of font is it possible
Participant
August 28, 2007
Can any help me with changing the color of the font this script puts in the footer?

It comes in black and the pdfs I am printing are already dark colors.

best regards,
DB
Participant
August 28, 2007
Yes, I have used this script with professional 7.0 without problem. I did download from the site provided.
Participant
August 23, 2007
I have the same problem that Eli had with version 7.0. I've tried two versions of the JS above (PrintWithFooter.js) and (SetRemoveFooter.js), and I have the two sub-menus under the File menu, but "internal errors" every time I try to use them.

Has anyone had any success with 7.0?

Thanks,

M