Skip to content
book-open

GitHub Action

ai-to-pdf-action

v1.0.7 Latest version

ai-to-pdf-action

book-open

ai-to-pdf-action

Github Actions to convert an Adobe Illustrator πŸ‘‰πŸ» PDF

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ai-to-pdf-action

uses: jv-k/[email protected]

Learn more about this action in jv-k/ai-to-pdf-action

Choose a version

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.