https://github.com/dkhamsing/pdf_xcassets
:train: Generate Xcode xcassets for PDF assets
https://github.com/dkhamsing/pdf_xcassets
Last synced: about 1 year ago
JSON representation
:train: Generate Xcode xcassets for PDF assets
- Host: GitHub
- URL: https://github.com/dkhamsing/pdf_xcassets
- Owner: dkhamsing
- License: mit
- Created: 2015-12-24T04:41:20.000Z (over 10 years ago)
- Default Branch: dev
- Last Pushed: 2016-03-18T17:34:44.000Z (about 10 years ago)
- Last Synced: 2025-03-29T15:35:03.949Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 1.56 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pdf_xcassets
:train: Generate Xcode `xcassets` for pdf assets.

## Installation
```shell
git clone https://github.com/dkhamsing/pdf_xcassets.git
cd pdf_xcassets
rake install
# pdf_xcassets installed 😊
```
## Usage
pdf_xcassets
```shell
$ pdf_xcassets resources sample/
> Creating xcassets named resources.xcassets
> PDF assets found: 3
> Creating resources.xcassets/Contents.json..
> 1 Processing sample/stats/charts.pdf
> Creating resources.xcassets/sample-stats-charts.imageset
> Copying pdf file to imageset
> Creating Contents.json
> 2 Processing sample/tasks/checked.pdf
> Creating resources.xcassets/sample-tasks-checked.imageset
> Copying pdf file to imageset
> Creating Contents.json
> 3 Processing sample/tasks/unchecked.pdf
> Creating resources.xcassets/sample-tasks-unchecked.imageset
> Copying pdf file to imageset
> Creating Contents.json
> resources.xcassets created
> pdf_xcassets finished 🎉
```

Bonus: Use a tool like [`Cat2Cat`](https://github.com/vokal/Cat2Cat) to generate a UIImage category from the xcassets (reduce typos and get autocompletion in Xcode).
## Contact
- [github.com/dkhamsing](https://github.com/dkhamsing)
- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)
## License
This project is available under the MIT license. See the [LICENSE](LICENSE) file for more info.