{"id":15471950,"url":"https://github.com/dkhamsing/pdf_xcassets","last_synced_at":"2025-04-22T13:45:16.723Z","repository":{"id":76013530,"uuid":"48525078","full_name":"dkhamsing/pdf_xcassets","owner":"dkhamsing","description":":train: Generate Xcode xcassets for PDF assets","archived":false,"fork":false,"pushed_at":"2016-03-18T17:34:44.000Z","size":1633,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-29T15:35:03.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkhamsing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-24T04:41:20.000Z","updated_at":"2024-02-08T07:24:52.000Z","dependencies_parsed_at":"2023-02-26T03:30:13.209Z","dependency_job_id":null,"html_url":"https://github.com/dkhamsing/pdf_xcassets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Fpdf_xcassets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Fpdf_xcassets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Fpdf_xcassets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhamsing%2Fpdf_xcassets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkhamsing","download_url":"https://codeload.github.com/dkhamsing/pdf_xcassets/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250251042,"owners_count":21399746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T02:22:38.197Z","updated_at":"2025-04-22T13:45:16.717Z","avatar_url":"https://github.com/dkhamsing.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf_xcassets\n\n:train: Generate Xcode `xcassets` for pdf assets.\n\n![](http://i.giphy.com/zFCFZzX0KkJnW.gif)\n\n## Installation\n\n```shell\ngit clone https://github.com/dkhamsing/pdf_xcassets.git\ncd pdf_xcassets\nrake install\n\n# pdf_xcassets installed 😊\n```\n\n## Usage\n\n\tpdf_xcassets \u003cxcassets name\u003e \u003cassets directory\u003e\n\n```shell\n$ pdf_xcassets resources sample/\n\u003e Creating xcassets named resources.xcassets\n\u003e PDF assets found: 3\n\u003e Creating resources.xcassets/Contents.json..\n\u003e 1 Processing sample/stats/charts.pdf\n  \u003e Creating resources.xcassets/sample-stats-charts.imageset\n  \u003e Copying pdf file to imageset\n  \u003e Creating Contents.json\n\u003e 2 Processing sample/tasks/checked.pdf\n  \u003e Creating resources.xcassets/sample-tasks-checked.imageset\n  \u003e Copying pdf file to imageset\n  \u003e Creating Contents.json\n\u003e 3 Processing sample/tasks/unchecked.pdf\n  \u003e Creating resources.xcassets/sample-tasks-unchecked.imageset\n  \u003e Copying pdf file to imageset\n  \u003e Creating Contents.json\n\u003e resources.xcassets created\n\u003e pdf_xcassets finished 🎉\n```\n\n![](assets/sample-xcassets.png)\n\nBonus: 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).\n\n## Contact\n\n- [github.com/dkhamsing](https://github.com/dkhamsing)\n- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)\n\n## License\n\nThis project is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhamsing%2Fpdf_xcassets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkhamsing%2Fpdf_xcassets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhamsing%2Fpdf_xcassets/lists"}