PDF-ShellTools > Ideas/Suggestions

Stamps: Filename (without file extension)

(1/1)

nightslayer23:
What would be the code to add the filename as an option in your stamping tool but exclude the ".pdf"

RTT:
Add a text stamp and set it dynamic. Click the configure button and from the script type objects options add a new script and name it FilenameNoExt.
Set the script code as:

--- Code: ---function FilenameNoExt() {
    var Filename = BatchFile.filename;
    return Filename.substring(Filename.lastIndexOf('\\') + 1, Filename.lastIndexOf('.'))
}
--- End code ---
You can now type [<FilenameNoExt>] as the stamp text to stamp the PDF filename without the file extension.

nightslayer23:
WOO! LEGENDARY

nightslayer23:
How can we add more font choices to the list?

RTT:
That's not possible with the current version. Only the standard PDF fonts can be used.

Navigation

[0] Message Index

Go to full version