Copy link to clipboard
Copied
Hi,
New. I'm wanting to - with one click - add a page to the beginning of the document and in the vertical & horizonal center write the word "Test". Obviously I dont want the word "test" but if I can figure this seemingly-simple thing out them I can accomplish my goal.
There's a few ways I can think of doing this, whether they work or not, I dont know. Maybe I'm missing something. I'm thinking Action Wizard. The Action Wizard allows a blank page to be added in front of page 1, but after that I'm running into problems. I'm thinking...
I'm sure I'm missing something. How can I tell Adobe to do a very simple thing like insert a blank page one then write "Test" on the very center of that blank page?
Pseudocode: Insert blank page 1; horizontal = center; vertical = center; font = whatever; size = whatever; color = whatever; text = "Test". Write.Text.Page=1
Thank you.
Click the Execute JavaScript command and make sure that the "Prompt User" check-box underneath it is not ticked.
Copy link to clipboard
Copied
You can use this code to do it:
this.newPage(-1);
this.addWatermarkFromText({nStart: 0, cText: "TEST"});
The second command can of course be customized in all kinds of ways regarding the text's appearance, location, etc., but for what you described it should do the trick.
Copy link to clipboard
Copied
Cool. I'll try this and let you know.
Copy link to clipboard
Copied
Again, thank you for the response. I've tried the code above. However, I'm running into a problem where I'm getting the Javascript Editor with the code instead of actually executing the code. Screenshot attached. I'm sure I'm doing this wrong, so I'll try more options as I get time.
Copy link to clipboard
Copied
Click the Execute JavaScript command and make sure that the "Prompt User" check-box underneath it is not ticked.
Copy link to clipboard
Copied
"I have discovered fire!"
That's the feeling I got when this worked 🙂
Thank you.