Skip to content

▶️ This workflow action uses Ghostscript to convert Adobe Illustrator .ai files to .pdf

License

Notifications You must be signed in to change notification settings

jv-k/ai-to-pdf-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Adobe Illustrator 👉🏻 PDF Action

CI CodeFactor

This workflow action uses Ghostscript to convert Adobe Illustrator .ai files to .pdf.

Parameter Description Required
INPUT_FILE The .AI file to be converted. Yes
OUTPUT_FILE The name of the resulting PDF file.
Default value: output.pdf
No
OPTIONAL_PARAMS Additional arguments to be passed to Ghostscript.
The following are already used by this Action and cannot be set: sDEVICE, dNOPAUSE, dQUIET, dBATCH sOutputFile
No
OVERWRITE Whether to overwrite existing files No
GH_COMMIT_MESSAGE Commit message.
Default value: chore: Converted AI 👉🏻 PDF
No
GH_USER The username of the user that will be used to commit the new files.
Default value: The owner of the repo
No

Example usage

name: Convert .AI 👉🏻 .PDF document
on: [push]
jobs:
    compress_pdf:
        runs-on: ubuntu-latest
        steps:
            - name: Set up Git repo
              uses: actions/checkout@v2 
            - name: Create PDF
              uses: jv-k/ai-to-pdf-action@v1  
              with:  
                INPUT_FILE: 'inputfile.ai'  
                OUTPUT_FILE: 'output.pdf'  
                OPTIONAL_PARAMS: '-dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer'  

Contributing

I'd love you to contribute to @jv-k/ai-to-pdf-action, pull requests are welcome for submitting issues and bugs!

License

The scripts and documentation in this project are released under the MIT license.