Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
pdf_export [2024/04/03 07:19] o2adminpdf_export [2024/04/03 07:26] – [Javascript] o2admin
Line 3: Line 3:
 You can run Extendscript (Illustrator's built-in version of Javascript) to modify the file and path. Your code will be wrapped in a function so ensure that you include a return statement with the required data structure. You can run Extendscript (Illustrator's built-in version of Javascript) to modify the file and path. Your code will be wrapped in a function so ensure that you include a return statement with the required data structure.
  
 +  * Return an array with the find and replace values such as [{ find: "ABC", replace: "123"},{find: "Cat", replace: "Dog"}], which will be applied to the filename template
 +  * Return false to cancel without error
 +  * Return string to show as an error.
 +
 +**Variables passed your code**
 +  * 'path' is the destination path.
 +  * 'filename' is the filename template.
 +  * 'index' is the current artboard index.
 +  * 'range' is the page range being used. i.e '2-4'
 +
 +**Functions**
 +  * Call getData(variable) to get the standard data from the table below, such as getData('doc.filename'
 +  * Call setPath(path) to change the destination path
 +  * Call setFilename(filename) to set the filename template (overwriting the existing filename template)
 ==== Filename ==== ==== Filename ====