{"id":44529090,"url":"https://github.com/zt64/compose-pdf","last_synced_at":"2026-02-13T18:26:27.183Z","repository":{"id":199606327,"uuid":"700592676","full_name":"zt64/compose-pdf","owner":"zt64","description":"Kotlin multiplatform library for compose multiplatform to assist in viewing PDF files from various sources","archived":false,"fork":false,"pushed_at":"2026-02-12T00:59:02.000Z","size":555,"stargazers_count":90,"open_issues_count":9,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-12T11:13:11.878Z","etag":null,"topics":["compose","compose-multiplatform","compose-ui","jetpack-compose","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/zt64.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-04T22:26:20.000Z","updated_at":"2026-02-12T00:58:51.000Z","dependencies_parsed_at":"2023-10-11T06:37:14.045Z","dependency_job_id":"1f73303e-e3b8-4b74-aaff-889fa9cb8738","html_url":"https://github.com/zt64/compose-pdf","commit_stats":null,"previous_names":["zt64/compose-pdf"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zt64/compose-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zt64%2Fcompose-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zt64%2Fcompose-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zt64%2Fcompose-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zt64%2Fcompose-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zt64","download_url":"https://codeload.github.com/zt64/compose-pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zt64%2Fcompose-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["compose","compose-multiplatform","compose-ui","jetpack-compose","kotlin"],"created_at":"2026-02-13T18:26:25.060Z","updated_at":"2026-02-13T18:26:27.170Z","avatar_url":"https://github.com/zt64.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compose PDF\n\n[![Maven Central Version](https://img.shields.io/maven-central/v/dev.zt64/compose-pdf?link=https%3A%2F%2Fcentral.sonatype.com%2Fartifact%2Fdev.zt64%2Fcompose-pdf)](https://central.sonatype.com/artifact/dev.zt64/compose-pdf)\n![GitHub](https://img.shields.io/github/license/zt64/compose-pdf)\n\u003cbr\u003e\n![badge-platform-jvm]\n![badge-platform-android]\n\nCompose Multiplatform library to display PDF files.\n\n## Supported platforms:\n\n- Desktop (JVM) through [ICEpdf](https://github.com/pcorless/icepdf)\n- Android 5.0+ (SDK 21)\n- iOS (planned) https://github.com/zt64/compose-pdf/issues/28\n\n## Setup\n\n\u003cdetails\u003e\n\u003csummary\u003eKotlin Build script\u003c/summary\u003e\n\n```kotlin\ndependencies {\n    implementation(\"dev.zt64:compose-pdf:x.y.z\")\n}\n```\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003eVersion catalog\u003c/summary\u003e\n\n```toml\n[versions]\ncompose-pdf = \"x.y.z\"\n\n[libraries]\ncompose-pdf = { module = \"dev.zt64:compose-pdf\", version.ref = \"compose-pdf\" }\n```\n\n\u003c/details\u003e\n\n## Usage\n\n```kotlin\n// To display a PDF file, first you need a PDF state\n// It can be created using the `rememberPdfState` function\n// The function has several available overloads, for example, you can pass a `File` object\nval pdfState = rememberPdfState(File(\"path/to/file.pdf\"))\n\n// Then you can use the included composables to display the PDF\n// For example to display all pages in a vertical list you can use the `PdfColumn` composable\nPdfColumn(pdfState)\n\n// Or to display in a vertical list with snapping you can use the `PdfVerticalPager` composable\nPdfVerticalPager(pdfState)\n\n// And likewise for a horizontal list with snapping you can use the `PdfHorizontalPager` composable\nPdfHorizontalPager(pdfState)\n\n// You can also use the `PdfPage` composable directly to display a single page and have more control over the layout\nPdfPage(pdfState, pageNumber = 0)\n```\n\n## License\n\n[MIT](LICENSE)\n\n[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat\n\n[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat\n\n[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat\n\n[badge-platform-js-node]: https://img.shields.io/badge/-nodejs-68a063.svg?style=flat\n\n[badge-platform-linux]: http://img.shields.io/badge/-linux-2D3F6C.svg?style=flat\n\n[badge-platform-windows]: http://img.shields.io/badge/-windows-4D76CD.svg?style=flat\n\n[badge-platform-macos]: http://img.shields.io/badge/-macos-111111.svg?style=flat\n\n[badge-platform-ios]: http://img.shields.io/badge/-ios-CDCDCD.svg?style=flat\n\n[badge-platform-tvos]: http://img.shields.io/badge/-tvos-808080.svg?style=flat\n\n[badge-platform-watchos]: http://img.shields.io/badge/-watchos-C0C0C0.svg?style=flat\n\n[badge-platform-wasm]: https://img.shields.io/badge/-wasm-624FE8.svg?style=flat","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzt64%2Fcompose-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzt64%2Fcompose-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzt64%2Fcompose-pdf/lists"}