Copy link to clipboard
Copied
I have 200+ documents. I need to paste (insert) on the page (no matter where, but preferably in the upper right corner) the document file name. How can I do that?
Thank you.
1 Correct answer
Create an Action that executes this JavaScript code and then saves the file:
this.addWatermarkFromText({
cText: this.documentFileName,
nTextAlign: app.constants.align.right,
nHorizAlign: app.constants.align.right,
nVertAlign: app.constants.align.top,
nHorizValue: -72, nVertValue: -72
});
Copy link to clipboard
Copied
Create an Action that executes this JavaScript code and then saves the file:
this.addWatermarkFromText({
cText: this.documentFileName,
nTextAlign: app.constants.align.right,
nHorizAlign: app.constants.align.right,
nVertAlign: app.constants.align.top,
nHorizValue: -72, nVertValue: -72
});
Copy link to clipboard
Copied
Thank you, it works. How to change the location of the file name, I understood. Is it possible to choose the font size?
Thanks again
Copy link to clipboard
Copied
This is the documentation you need for the doc.addWaterMarkFromText method

