Skip to main content
Participant
Jan 18, 2023 9:20 AM UTC
Question

Intégrer le nom du fichier sur le document

Bonjour, 

Je souhaiterais avoir en variable dans mon document illustrator le nom du fichier lui même. Je n'arrive pas à trouver comment faire. 

SI le document s'appelle DOCUMENT.PDF avoir un texte automatiquement écrit : "DOCUMENT.PDF"

A bientôt, et merci pour votre aide.

Marc-Olivier Epitaux

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

4 replies

Anubhav M
Community Manager
Community Manager
Jan 26, 2023 9:28 AM UTC

Hello @Marc-Olivier22006960bcst,

 

Thanks for reaching out. I hope the suggestions shared by Mylenium and m1b helped answer your queries.

Feel free to reach out if you have more questions or need assistance. We'd be happy to help.

 

Thanks,

Anubhav

Translate
Participant
Jan 26, 2023 1:05 PM UTC

Hello,

Thank you very much, problem is that i don 't know about scripting in java 🙂🙂
you soon, Marc-Olivier Epitaux.

SERIALETIC Company

Translate
m1b
Community Expert
Community Expert
Jan 18, 2023 10:02 AM UTC

Hi @Marc-Olivier22006960bcst, the very basic script is:

var doc = app.activeDocument,
    tf = doc.textFrames.add();
tf.contents = doc.name;

 - Mark

Translate
Mylenium
Legend
Jan 18, 2023 10:00 AM UTC

You need a script. Variables can't do that. refer to this (and similar discussions):

 

https://community.adobe.com/t5/illustrator-discussions/how-to-script-illustrator-to-insert-filename-in-to-textpath/m-p/1161658

 

Mylenium

Translate