pdf_export
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| pdf_export [2026/10/25 02:27] – Markup fix for the DokuWiki upgrade (spaces inside bold/italic) 0.0.0.0 | pdf_export [2026/10/25 02:53] (current) – Help pages updated for PowerScripts 3.8 (help pages session) remoteuser | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PDF Export ====== | ====== PDF Export ====== | ||
| - | In a production environment, | + | Export PDFs of single artboards or whole documents |
| - | ==== PDF Options ==== | + | [[https:// |
| - | * **PDF Preset** - We recommend creating some custom PDF settings in Illustrator for your workflow, Such as a PDF setting dedicated for printing or proofing, you can set these in Illustrator in the [EDIT > Adobe PDF Presets...] Menu | + | ===== Where to find it ===== |
| - | * **Run spell checking before creating PDF**- Better | + | |
| - | * | + | |
| - | * **Secure with password** - Stops the PDF from being used and uses the password set in the Settings tab. //Note that passwords in PDF files are not 100% secure; there are online tools to bypass passwords. This should be considered a deterrent, such as hindering the printing of a low-resolution proof but not protecting the artwork from copying.// | + | |
| - | * | + | |
| - | * | + | |
| - | * **Copy filenames to Clipboard after export** - Once the files as successfully exported copy the filenames to the clipboard, If you want to copy the full filename including path see the history below | + | |
| - | ==== Artboard Range ==== | + | Open the PowerScripts panel (**Window > Extensions > PowerScripts**) and choose **PDF Export** from the **Tools** scripts. The script has three tabs: **Options**, |
| - | Select the pages to be exported. | + | ===== Quick start ===== |
| - | ==== Additional Marks ==== | + | - Choose a **PDF Preset**. |
| + | - Under **Artboard Range**, choose what to export, for example **Active Artboard**. | ||
| + | - Under **Save To**, choose a **Location**, | ||
| + | - Press **Export PDF ...**. | ||
| - | Add an additional confidence strip to check for consistent printing. | + | ===== Options ===== |
| - | The artwork scale setting only affects the scale of the marks, it does not scale the PDF file. | + | ==== Options ==== |
| - | ==== Save To==== | + | {{: |
| - | Choose a Location where to save your PDF | + | === PDF Options === |
| - | ==== Javascript ==== | + | * **PDF Preset**: the Illustrator PDF preset to use. Make your own presets for print and proofs in **Edit > Adobe PDF Presets...**. |
| + | * **Run spell checking before creating PDF**: better safe than sorry. | ||
| + | * **Preserve Illustrator Editing Capabilities**: | ||
| + | * **Secure with password**: protect the PDF with the password on the **Settings** tab. PDF passwords aren't completely secure (there are tools to remove them), so treat this as a deterrent, for example on low-resolution proofs. | ||
| + | * **Open PDF after export**, **Open Folder after export**. | ||
| + | * **Copy filenames to Clipboard after export**: ready to paste into an email or job sheet. | ||
| - | You can run Extendscript (Illustrator' | + | === Artboard Range === |
| - | * Return an array with the find and replace values such as [{ find: " | + | * **Export**: the **Active Artboard**, a **Custom Range** (for example '' |
| - | | + | * **Export |
| - | * Return string to show as an error. | + | |
| - | **Variables passed your code** | + | === Additional Marks === |
| - | * ' | + | |
| - | * ' | + | |
| - | * ' | + | |
| - | * ' | + | |
| - | **Functions** | + | Add a printer' |
| - | | + | |
| - | * Call setPath(path) to change | + | |
| - | | + | |
| - | Example | + | === Save To === |
| - | <sxh javascript; > | + | |
| - | // This example will extract | + | * **Location**: |
| - | // save the PDF to a master folder based on the ID in the X: drive | + | |
| - | // " | + | |
| - | // Get the current | + | === Javascript === |
| + | |||
| + | For automated workflows: **Run Extendscript Code** to change the folder and file name with your own code, and **Test** it. | ||
| + | |||
| + | * Your code is wrapped in a function, so finish with a '' | ||
| + | * a list of finds and replaces for the filename template, for example '' | ||
| + | * '' | ||
| + | * or some text to show as an error. | ||
| + | * You can use '' | ||
| + | * '' | ||
| + | |||
| + | Example: save into a folder named after the job number in the file name (" | ||
| + | |||
| + | <code javascript> | ||
| + | // get the document's file name | ||
| var docName = getData(' | var docName = getData(' | ||
| - | // Use a Regular Expression to get the ID | + | // find the job number (an F followed by digits) |
| var matches = docName.match(/ | var matches = docName.match(/ | ||
| if (matches) { | if (matches) { | ||
| Line 63: | Line 68: | ||
| } | } | ||
| - | return 'Can not find a valid ID in the filename'; | + | return 'Can not find a valid job number |
| + | </ | ||
| + | |||
| + | === Filename === | ||
| + | |||
| + | * **Prompt for filename**: show the save box with the name filled in. Untick to save straight away. | ||
| + | * **Allow sub folders to be created**: a ''/'' | ||
| + | * **Insert**: add a code to the template. **Reset** goes back to the default. **Examples** gives ready-made templates, such as: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ^ Code ^ What it gives ^ Example ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | === History === | ||
| - | </ | + | * **Save the last ... exported items**: keep a list of the PDFs you've exported. Double click one to open it. |
| + | * **Copy Filenames**, | ||
| - | ==== Filename ==== | + | * **Export PDF ...**: does it. |
| - | You can setup the filename template, and the values in the template will be replaced as the PDF file is exported. | + | ==== Conf Strip ==== |
| - | * {doc.filename} - {artboard.name}.pdf | + | {{: |
| - | * {doc.filename} - {artboard.name} - {doc.colorSpace} - [{pdf.preset}] - {artboard.number} of {artboard.count}.pdf | + | |
| - | * {doc.filename} - {artboard.name} - {artboard.number} of {artboard.count}.pdf | + | |
| - | * {doc.filename} - PROOF Ver{?Proof Version}.pdf **(This will ask for the version number)** | + | |
| - | * {doc.filename} - PAGE {artboard.number} - {artboard.width}x{artboard.height} {doc.rulerunits}.pdf | + | |
| - | * {doc.filename} - {export.number} of {export.count} PROOF.pdf | + | |
| - | * * Archive of {doc.filename} - [{weekday} {day}-{month}-{year}].pdf | + | |
| - | |**{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 | + | |
| - | |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|The first Artboard Name in the range| | + | |
| - | |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| | + | |
| - | |? | + | |
| - | ==== History | + | ==== Settings |
| - | The script will save the last 100 items exported to a history list, you can view the exported files, copy the filename or full filename with paths, and open the file (double click on the filename) or open the folder | + | |
| - | ==== Release Notes ==== | + | * **Secure PDF Password**: the password for **Secure with password**. |
| - | ===== 2.3.3 ===== | + | ===== Tips ===== |
| - | * 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. | + | |
| - | * Added History to record exported files and reopen them. | + | |
| - | ===== 2.1.0 ===== | + | * Save a preset for each kind of PDF you make (see [[using_presets|Using Presets]]), for example " |
| - | * Added option | + | * Put '' |
| + | * Run an export from a key with [[hotkeys|Hotkeys and Quick Keys]]. | ||
| + | ===== What's new ===== | ||
| - | ===== 2.0.2 ===== | + | * **2.3.7** |
| - | * Fixed issue where UI was crashing | + | * Fixed: the JavaScript filename code is used for the exported files, not only by Test. |
| - | + | * Fixed: " | |
| - | ===== 2.0.1 ===== | + | * Improved: general bug fixes, reliability and speed. |
| - | * Requires | + | * **2.3.6**: Updated for PowerScripts 3.8.32. |
| - | * CC2018 Compatability Fixes | + | * **2.3.5**: Updated for the new version of PowerScripts. |
| + | * Older changes: [[releasenotes|PowerScripts Release Notes]] | ||
| - | ===== 2.0.0 ===== | ||
| - | * Export artboards as separate files (NEW in 2.0.) | ||
| - | * Secure the PDF with just a click using a common password | ||
| - | * Add printers confidence strips for large format printers | ||
| - | * Export just the currently selected artboard, a range of pages or the entire document | ||
| - | * Automatically name the PDF, including adding: | ||
| - | * Custom text | ||
| - | * Timestamp, weekday name, day, month, year | ||
| - | * The Linked filename of a placed document | ||
| - | * Artboard size or name | ||
| - | * Artboard number | ||
| - | * Total number of Artboards | ||
| - | * Exported page count | ||
| - | * Document color mode (Helps to capture export errors downstream) | ||
| - | * Document filename | ||
| - | * Add in custom values which will ask for user input, such as a revision number | ||
| - | * Set a destination to save (NEW in 2.0.0) | ||
| - | * Last Exported to Folder | ||
| - | * Documents Folder | ||
| - | * Fixed Location | ||
| - | * Current document working folder | ||
| - | * Sub folder - creating it if it does not exist | ||
| - | * Prompt for filenames or save each file without asking | ||
| - | * Open the destination folder after exporting | ||
| - | * Set different defaults to use for quick reuse | ||
pdf_export.txt · Last modified: by remoteuser