Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This solution works for me too, filename and text on the right.
I'd like to shorten the text box from 1/2 page width to only 10-20 characters so the display is not cluttered. Can someone tell me how to reduce the size of the text box?
Here is the code that has been taken from these posts and modified for my personal use (filename and text ONLY for those of you that want to bypass modifying it on your own):
app.addSubMenu({ cName: "Footer",cUser: "Custom Footer", cParent: "File", nPos: 20 });
app.addMenuItem({ cName: "Set", cParent: "Footer", cExec: "SetFooter(9)"});
app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
app.addMenuItem({ cName: "Remove", cParent: "Footer", cExec: "RemoveFooter(9)"});
//Set/remove Footer
function SetFooter(ARG)
{
var re = /.*\/|\.pdf$/ig;
var FileNM = this.path.replace(re,"")+".pdf";
var Path = this.path;
var AcDate = new Date();
var AcDateFormat = "dd-mmm-yyyy"
var Box2Width = 15
for (var p = 0; p < this.numPages; p++)
{
var aRect = this.getPageBox("Crop",p);
var TotWidth = aRect[2] - aRect[0]
if (ARG==9)
{ var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
fd.value = " " + Path +" ";
fd.textSize=6; fd.readonly = true;
if (ARG==1){ fd.alignment="left" };
if (ARG==2){ fd.alignment="center" };
if (ARG==3){ fd.alignment="right" };
var fr = this.addField("xftRem", "text", p, [30+TotWidth/2,15, TotWidth-30,30]);
fr.textSize=6; fr.alignment="right"; fr.value = "Confidential";
}
if (ARG==9)
{ var bStart=(TotWidth/2)-(Box2Width/2)
var bEnd=((TotWidth/2)+(Box2Width/2))
if (ARG==5){var bStart=(TotWidth-Box2Width-30); var bEnd=(TotWidth-10);}
var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
fp.value = "";
fp.textSize=6; fp.readonly = true;
fp.alignment="center";
}
}
}
function RemoveFooter(ARG)
{
if (ARG==9) {var x = this.removeField("xftDate");}
if (ARG==9)
{ for (var p = 0; p < this.numPages; p++)
{var x = this.removeField(String("xftPage"+p+1)); }
if (ARG<=3 || ARG==9) {var x = this.removeField("xftRem");}
}
}
Copy link to clipboard
Copied
Great Topic
Using Adobe Pro9.0
I batch process the footer area of my PFD's but then after production I require a scrip that would:
Header Right
Produce the original print/ creation date and then update it with the print date others of whom may access the file (format 18AUG2010 or 18-AUG-2010)
AND
Also, I was hoping to capture the whom "the ID (author) of the person of whom had printed the record"
Sample Output
Tom Brady 18AUG2010
AND
Header Left
"Reference Only Copy"
Some of the code above appears to be applicable but I am not in a position to decipher a solution without guidance
Assistance is greatly appreciated
Lastly, does PDF security prevent the java?
Well Wishes
D
Copy link to clipboard
Copied
Dear experts Adobe Acrobat!
At me Adobe Acrobat Pro 9.3.4. At the print of file PDF by means of the printer "Adobe PDF" bookmarks from a outfile disappear. All options of the printer forbid to delete bookmarks, but it does not work! Can be exists JavaScript for this problem?
Yours faithfully, Katkovskij E.A.
Copy link to clipboard
Copied
Don't know what you mean by all options forbid the deletions of bookmarks. Bookmarks have never been included in the printer, but have been part of PDF Maker that is a plugin developed primarily for MS OFFICE. To include bookmarks and such from other applications and have them show up when printing to the printer, you have to add PDF Marks to your document. That is typically done by adding small EPS files into the document. In fact, this was the way slide transitions were embedded with AA3. PDF Maker adds the PDF Marks as a preprocessing step before using the Adobe PDF printer, at least prior to AA9. The process in AA9 is different and am not sure of the steps Adobe took there.
Copy link to clipboard
Copied
Printing to the "Adobe PDF" printer is exactly like writing to a printer that creates a printed paper document, except the output is to a file and not paper. One loses all interactive features of the PDF. You can also print to paper and then scan an OCR the printed paper and have the same result, bu the PDF maybe of a better quality.
The "Adobe PDF" is a print driver that mimics a paper printer.
Copy link to clipboard
Copied
I wonder if this script will be working in Adobe Reader 9.X
Copy link to clipboard
Copied
Reader can not add form fields or watermarks, but you could add a text box annotation.
Reader will need to print "Markups and Document" or the annotation will not print.
The easiest way to do this is add a form form field using Acrobat and then have a script that fills in the value of the form field. This will work with Reader no matter how the print is setup.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied