{"id":1549,"url":"https://github.com/kayoslab/SwiftPDFGenerator","last_synced_at":"2025-08-02T04:31:51.674Z","repository":{"id":118451242,"uuid":"54240350","full_name":"kayoslab/SwiftPDFGenerator","owner":"kayoslab","description":"Generate beautiful .pdf Files from xib","archived":false,"fork":false,"pushed_at":"2016-04-12T08:38:31.000Z","size":9097,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-15T19:06:39.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"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/kayoslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-19T01:03:34.000Z","updated_at":"2023-10-12T20:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5371c9f-e87c-4e7e-9b9b-7ba883f3f712","html_url":"https://github.com/kayoslab/SwiftPDFGenerator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayoslab%2FSwiftPDFGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayoslab%2FSwiftPDFGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayoslab%2FSwiftPDFGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayoslab%2FSwiftPDFGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayoslab","download_url":"https://codeload.github.com/kayoslab/SwiftPDFGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228438969,"owners_count":17920017,"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-01-05T20:15:49.563Z","updated_at":"2024-12-06T08:31:13.878Z","avatar_url":"https://github.com/kayoslab.png","language":"Swift","funding_links":[],"categories":["Media"],"sub_categories":["PDF","Other free courses"],"readme":"## Description\nThe Library generates a PDF directly from interface builder with Auto-layouted views! Swift Version of [UIView_2_PDF](https://github.com/RobertAPhillips/UIView_2_PDF).\n\n## Installation\nDownload and drop ```SwiftPDFGenerator.swift``` in your project.\n\n## Usage\n#### 1. Make a xib file. \nYour xib file should only consist of UILabels and/or UIImageViews and/or other UIView subviews. Use views that are 1 pixel high or wide to create lines. Set the tag of a UIView to 1 to have it draw filled or zero to draw as just a 1 pixel bordered box.\n\n#### 2. Load your xib like this\n```swift\nlet pageOneView = NSBundle.mainBundle().loadNibNamed(\"PageOneView\", owner: self, options: nil).last as! PageOneView\nlet pageTwoView = NSBundle.mainBundle().loadNibNamed(\"PageTwoView\", owner: self, options: nil).last as! PageTwoView\n```\n\n#### 3. Then generate your PDF like this\n```swift\nlet filePath = SwiftPDFGenerator.generatePDFWithPages(pages)\n```\n\nSee demo project for details.\n\n## License\nswift-pdf is released under the MIT license. See 'LICENCE.md' for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoslab%2FSwiftPDFGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayoslab%2FSwiftPDFGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoslab%2FSwiftPDFGenerator/lists"}