https://github.com/jv-k/ai-to-pdf-action
▶️ This workflow action uses Ghostscript to convert Adobe Illustrator .ai files to .pdf
https://github.com/jv-k/ai-to-pdf-action
adobe-illustrator convert-pdf ghostscript illustrator pdf pdf-generation workflow
Last synced: 2 months ago
JSON representation
▶️ This workflow action uses Ghostscript to convert Adobe Illustrator .ai files to .pdf
- Host: GitHub
- URL: https://github.com/jv-k/ai-to-pdf-action
- Owner: jv-k
- License: mit
- Created: 2022-01-27T21:44:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T02:22:21.000Z (12 months ago)
- Last Synced: 2025-04-14T04:47:42.960Z (2 months ago)
- Topics: adobe-illustrator, convert-pdf, ghostscript, illustrator, pdf, pdf-generation, workflow
- Language: Shell
- Homepage:
- Size: 86.9 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Adobe Illustrator 👉🏻 PDF Action
[](https://github.com/jv-k/ai-to-pdf-action/actions/workflows/ci.yml) [](https://www.codefactor.io/repository/github/jv-k/ai-to-pdf-action/overview/master)
This workflow action uses [Ghostscript](https://www.ghostscript.com/) 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
```yaml
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](https://github.com/jv-k/ai-to-pdf-action/issues/new/choose) are welcome for submitting issues and bugs!## License
The scripts and documentation in this project are released under the [MIT license](https://github.com/jv-k/ai-to-pdf-action/blob/master/LICENSE).