Skip to main content
derekh48409389
Participant
Jan 27, 2017 10:31 PM UTC
Question

How do you modify a preset acrobat action .sequ file (File Name Stamper specifically) to remove the extension from the file name before it places the stamp?

I would like to modify a preset acrobat action(.sequ file) (File Name Stamper) to remove the extension from the file name before it places the stamp. Ideally it would be a check box in the Action Settings dialogue. I have no scripting/programming experience. Is this something that is straightforward to accomplish? Thx. Apologies for being clueless.

Derek

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

Joel Geraci
Community Expert
Community Expert
Jan 27, 2017 11:45 PM UTC

Actually... I took a few minutes and just added a checkbox to to the dialog to include the file extension... or not. The default is checked to keep it consistent with the original. You can grab it at the URL below until I find a more permanent home for it.

http://practicalpdf.com/downloads/FileNameStamper_2.sequ

Translate
derekh48409389
Participant
Jan 28, 2017 3:02 AM UTC

Dude! Thank you. That's awesome and educational all at the same time.  really appreciate your help with this. And the super quick response too. Cheers!

Derek

Translate
Joel Geraci
Community Expert
Community Expert
Jan 27, 2017 10:50 PM UTC

It'll be simple but not trivial. The Action uses a dialog that you need to be careful not to mess up.

The first thing to know is that .sequ files are just XML. You can open it up in any XML editor and locate the "item" with the name "ScriptCode". This is an encoded version of the JavaScript you need to modify. Just decode it, edit it to remove the file extension, encode it again nd put it back exactly where you found it.

There's a great tool for encoding and decoding the JavaScript here Encode/Decode HTML Entities - Webatic

Translate
try67
Community Expert
Community Expert
Jan 27, 2017 10:39 PM UTC

Shouldn't be too difficult to do, but can you post the code from the Action?

Translate