{"id":50791774,"url":"https://github.com/thoven87/poppler-kit","last_synced_at":"2026-06-12T11:32:06.668Z","repository":{"id":358973198,"uuid":"1243850126","full_name":"thoven87/poppler-kit","owner":"thoven87","description":"High performant Swift wrapper for the Poppler PDF rendering utilities","archived":false,"fork":false,"pushed_at":"2026-05-27T02:43:18.000Z","size":302,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T04:27:21.893Z","etag":null,"topics":["cairo","converter","html","pdf","pdf-converter","pdf-to-cairo","pdf-to-html","pdf-to-image","pdf-to-text","poppler","poppler-utils","ppm","ps","server-side-swift","sign-pdf","swift","swift-on-server","text","unite"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoven87.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T18:16:03.000Z","updated_at":"2026-05-27T02:43:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thoven87/poppler-kit","commit_stats":null,"previous_names":["thoven87/poppler-kit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thoven87/poppler-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoven87%2Fpoppler-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoven87%2Fpoppler-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoven87%2Fpoppler-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoven87%2Fpoppler-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoven87","download_url":"https://codeload.github.com/thoven87/poppler-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoven87%2Fpoppler-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34243051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cairo","converter","html","pdf","pdf-converter","pdf-to-cairo","pdf-to-html","pdf-to-image","pdf-to-text","poppler","poppler-utils","ppm","ps","server-side-swift","sign-pdf","swift","swift-on-server","text","unite"],"created_at":"2026-06-12T11:32:06.543Z","updated_at":"2026-06-12T11:32:06.663Z","avatar_url":"https://github.com/thoven87.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PopplerKit\n\nSwift 6 PDF library for macOS and Linux, built on [Poppler](https://poppler.freedesktop.org/).\n\n[![Swift 6](https://img.shields.io/badge/Swift-6.0-orange)](https://swift.org)\n[![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey)](https://swift.org/server)\n\n## Products\n\n| Product | API | System dependency |\n|---|---|---|\n| **`PopplerKit`** | In-process C++ binding — text, metadata, rendering, table extraction | `libpoppler-cpp` |\n| **`PopplerUtils`** | Subprocess wrappers for `poppler-utils` CLI — split, merge, SVG, signing | `poppler-utils` |\n\n## Install\n\n```swift\n// Package.swift\n.package(url: \"https://github.com/thoven87/poppler-kit\", from: \"1.0.0\")\n```\n\n```bash\n# macOS — both are required: pkg-config is used by SPM to resolve poppler-cpp headers\nbrew install pkg-config poppler\n\n# Linux / Docker — poppler 26.05.0 must be built from source (Ubuntu 24.04 provides deps)\n# See the DocC GettingStarted guide or the CI workflows for the exact cmake invocation.\n```\n\n## Quick start\n\n```swift\nimport PopplerKit\n\nlet doc = try PopplerDocument.load(from: url)\n\n// Text-layer PDF → stream text\nif doc.hasExtractableText {\n    for try await pageText in doc.textStream() { process(pageText) }\n}\n\n// Scanned PDF → stream base64 images for LLM inference\nelse {\n    for try await b64 in doc.rasterBase64Stream(xres: 150) {\n        try await llm.analyse(image: b64)\n    }\n}\n```\n\n## Documentation\n\nFull API reference and guides are in the **DocC documentation**:\n\n```bash\nswift package generate-documentation --target PopplerKit\nswift package generate-documentation --target PopplerUtils\n```\n\n### Guides\n\n- **Getting Started** — installation, loading, first extraction\n- **Text Extraction** — `textStream`, `textBoxes`, region extraction, search\n- **Rasterization** — rendering pipeline, LLM integration, resolution guide\n- **Working with Documents** — metadata, security, permissions, structure, saving\n- **Table Extraction** — `PDFTable`, keyword selection, multi-page tables\n- **Docker and Cloud Run** — container setup, Cloud Run config, Ubuntu compatibility\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoven87%2Fpoppler-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoven87%2Fpoppler-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoven87%2Fpoppler-kit/lists"}