Save Named PDF

Script for Adobe Illustrator
Latest update 4/6/2022, version 1.3

Save a copy of the current document as PDF using variable placeholders to name the output file.

  • Variables for artboard width and height
  • Variables for date, time, and more
  • Save using any PDF preset
Download
Save Named PDF

FREE to download
Please make a contribution

Many scripts are free to download thanks to the support of users. Help me keep developing new scripts by supporting my work. Click any one of the buttons below to make a contribution of any amount. Thank you.

× Stripe

Choose an amount to contribute.
Thank you for supporting my work.

How-to Video

THIS IS AN AD. Beware of anything in the ad artwork that resembles a 'DOWNLOAD' button meant to confuse you into thinking it downloads something from this website. It does not.

How to use the script

The interface has four sections: File name, Options, Output, and Settings. Set the desired options and click the OK button to begin.

Section 1: File name

Enter literal text or any variables. To the right is a button that open another window with the file name input repeated, plus a list of variables that may be added to it.

Button to add variables
Add variables window

^F — the document file name without extension.

^O — the name of the folder where the document is located.

^W — width of the artboard.

^H — height of the artboard.

^U — the artboard size measurement unit, set below.

^X — the artboard size scale, set below.

^D — date as year (four digits), month, and day.

^d — date as year (two digits), month, and day.

^T — time as hours, minutes, and seconds.

^t — time as hours and minutes.

Date and time are calculated at the moment the PDF is saved.

The remainder of the window are options related to the variables.

Artboard size measurement units — applies to the variables ^W and ^H. And for the variable ^U, the matching abbreviation (in, mm, pt, etc.) is inserted.

Artboard size scale — for documents not built to actual size. The value entered is a multiplier that alters the result of the variables ^W and ^H.

Section 2: Options

Periods — when enabled, periods within the file name are either removed, converted to a dash, or converted to an underscore. This does not include the period before the extension, which is never removed or replaced.

Spaces — when enabled, spaces within the file name are either removed, converted to a dash, or converted to an underscore.

Letter case — when enabled, the file name is converted to either all lowercase or all uppercase.

Remove diacritics — characters with diacritics, such as accents, are converted to the equivalent basic glyph.

Section 3: Output

Folder — the folder to which the PDF is saved. The default is the folder where the Illustrator document is located. Click the button Folder to select another. To the right is a button with three dots that opens another window with more output folder options.

Output folder more options
Output folder window

Here, recent folders are listed. Click one, and it becomes the output folder.

It’s also possible to set a folder as the default each time the script runs. Below the list is Default output folder. Click the button Set default, and choose the desired folder. Then whenever the script runs, the output folder is the same. Or leave the default (none), and it’s always where the document is located.

PDF preset — the PDF preset used when saving the PDF.

Replace existing output file — when enabled, an existing output file is replaced without user intervention. When disabled, the user is prompted to confirm the replacement of an existing output file.

Section 4: Settings

The current options may be saved and restored later. Select from the Load drop-down list to choose saved settings, and the current options are updated. Click the Delete button, and the saved settings selected in the Load drop-down list are permanently removed. Click the Save button, provide a name for the settings, and the current options are preserved. If the name already exists, the user may choose to replace the saved settings. Or click the checkbox Replace settings, and choose the settings to replace.

The script provides default saved settings named [Default]. These settings cannot be deleted but may be updated to the current values. Save settings, click the checkbox Replace settings, and choose [Default].

When settings are saved, there is also the option to include Output folder.

Save Named PDF Save settings

Each time the script is launched, the output folder defaults to the location of the Illustrator document. To override the default, enable the option to include Output folder. Then when the saved settings are loaded, the output folder is restored to the value set when the settings were saved. This includes the next launch of the script, as the last settings selected are also restored.

× Stripe

Choose an amount to contribute.
Thank you for supporting my work.

Download
Save Named PDF

License details included in download

For help installing scripts, see How to Install and Use Scripts in Adobe Creative Cloud Applications.

Also available for hire to program custom solutions. Contact William for more information.

IMPORTANT: by downloading any of the scripts on this page you agree that the software is provided without any warranty, express or implied. USE AT YOUR OWN RISK. Always make backups of important data.