Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pdf_export [2018/02/20 05:16] – [2.1.0] o2admin | pdf_export [2024/04/03 07:23] – [Javascript] o2admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Javascript ==== | ||
+ | You can run Extendscript (Illustrator' | ||
+ | |||
+ | * Return an array with the find and replace values such as [{ find: " | ||
+ | * Return false to cancel without error | ||
+ | * Return string to show as an error. | ||
+ | |||
+ | **Variables passed your code** | ||
+ | * ' | ||
+ | * ' | ||
+ | * ' | ||
+ | * ' | ||
+ | |||
+ | **Functions** | ||
+ | * Call getData(variable) to get the standard data from the table below, such as getData(' | ||
+ | * Call setPath(path) to change the destination path | ||
+ | ==== Filename ==== | ||
+ | |||
+ | You can setup the filename template, and the values in the template will be replaced as the PDF file is exported. | ||
+ | |||
+ | |**{Variable}**|**Description**|**Example Output*| | ||
+ | |timestamp|Timestamp| 2024-02-03 14:33:12| | ||
+ | |time|Time HH: | ||
+ | |weekday|Weekday|Monday| | ||
+ | |shortweekday|Short Weekday|Mon| | ||
+ | |day|Day|3| | ||
+ | |month~Month|7| | ||
+ | |year~Year|2024| | ||
+ | |linked.filename~Filename of First Linked File|*Empty if none found| | ||
+ | |pdf.preset|PDF Preset Name| | | ||
+ | |artboard.width|Artboard Width in document units | | | ||
+ | |artboard.height|Artboard Height in document units| | | ||
+ | |artboard.number|Artboard Page Number| | ||
+ | |artboard.name|Artboard Name| | | ||
+ | |artboard.count|Total Artboard Count| | | ||
+ | |export.number|Current count of pages being exported| | | ||
+ | |export.count|Total Number of pages being exported| | ||
+ | |doc.rulerunits|Ruler Units|mm| | ||
+ | |doc.colorSpace|Document Color Space|RGB| | ||
+ | |doc.filename|Document filename|example.ai| | ||
+ | |? | ||
==== Release Notes ==== | ==== Release Notes ==== | ||
+ | |||
+ | ===== 2.3.0 ===== | ||
+ | * Added a Javascript option to allow changing of the path and filename for more automated workflows; for example, use the filename to set the correct path to save to. | ||
+ | * Allowed Subfolder creation in filename template. | ||
===== 2.1.0 ===== | ===== 2.1.0 ===== |