{"id":50370463,"url":"https://github.com/chkwon/pdflaser","last_synced_at":"2026-05-30T07:00:38.520Z","repository":{"id":361096068,"uuid":"1249655486","full_name":"chkwon/PDFLaser","owner":"chkwon","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-29T06:04:52.000Z","size":725,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T08:11:09.610Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chkwon.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-25T23:35:26.000Z","updated_at":"2026-05-29T06:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chkwon/PDFLaser","commit_stats":null,"previous_names":["chkwon/pdflaser"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chkwon/PDFLaser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkwon%2FPDFLaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkwon%2FPDFLaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkwon%2FPDFLaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkwon%2FPDFLaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chkwon","download_url":"https://codeload.github.com/chkwon/PDFLaser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkwon%2FPDFLaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33682998,"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-05-30T02:00:06.278Z","response_time":92,"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":[],"created_at":"2026-05-30T07:00:22.502Z","updated_at":"2026-05-30T07:00:38.511Z","avatar_url":"https://github.com/chkwon.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Laser\n\nPDF Laser is a universal SwiftUI app for presenting PDF slide decks and image files with a temporary laser pointer and simple in-session pen markup.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"PDFLaser/Shared/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png\" alt=\"PDF Laser app icon\" width=\"128\"\u003e\n\u003c/p\u003e\n\n## Install With Homebrew\n\nInstall the signed, notarized macOS app from the PDF Laser Homebrew tap:\n\n```sh\nbrew tap chkwon/tap\nbrew install pdflaser\n```\n\nOr as a one-liner without tapping first:\n\n```sh\nbrew install --cask chkwon/tap/pdflaser\n```\n\nTo upgrade later:\n\n```sh\nbrew update\nbrew upgrade pdflaser\n```\n\n## What It Does\n\n- Opens a user-selected PDF or common image file.\n- Presents exactly one fitted page at a time.\n- Supports macOS keyboard navigation: right, down, and space for next; left, up, and backspace for previous.\n- Supports iPadOS touch navigation, on-screen previous/next controls, and best-effort external keyboard arrows.\n- Provides five tools: None, Dot Laser, Trail Laser, Pen, and Erase.\n- Keeps laser effects temporary.\n- Keeps pen markup in memory per page for the current app session, with stroke-based erase.\n- Supports clearing or undoing markup on the current page.\n- Exports a new flattened marked copy: PDF sources save as PDF, and image sources save in the original image format.\n\n## Privacy And Storage\n\nPDF Laser does not use iCloud, cloud sync, a document browser, autosave, or app-managed document storage. It reads the PDF or image selected by the user and never modifies that original file. Laser effects remain temporary. Pen markup is session-only unless the user explicitly exports a new flattened marked copy.\n\n## Architecture\n\n- SwiftUI owns the application shell and toolbar.\n- PDFKit loads PDF data and draws the current page; image files are converted into a single-page internal PDF for presentation.\n- AppKit and UIKit wrappers provide page rendering and input capture.\n- Shared model code stores navigation state, tool selection, laser settings, and pen strokes.\n- All laser and pen points use normalized page-relative coordinates in the `0...1` range, so overlays stay aligned when the window or screen size changes.\n\n## External Display\n\nThe iPadOS target includes an `ExternalDisplayManager` stub. The intended follow-up architecture is to attach a presentation-only window to the external `UIScreen`, render the same `PDFSlideView` without the toolbar there, and keep controls on the iPad display. The MVP keeps the iPad app fully usable without an external display.\n\n## Build\n\nThis repo uses XcodeGen:\n\n```sh\nxcodegen generate\nopen PDFLaser.xcodeproj\n```\n\nBuild the `PDFLaser-macOS` or `PDFLaser-iPadOS` scheme from Xcode.\n\n## macOS Binary Release\n\nThe `macos-release` GitHub Actions workflow builds the macOS app, signs it with a Developer ID Application certificate, notarizes it with Apple, staples the notarization ticket, uploads a workflow artifact, and publishes a GitHub Release asset named like `PDF-Laser-v0.1-macOS-universal.zip`.\n\nThe workflow also mirrors that zip into the public `chkwon/homebrew-tap` release assets and updates `Casks/pdflaser.rb`, so Homebrew can install the app without requiring access to this source repository.\n\nRequired GitHub repository secrets:\n\n- `DEVELOPER_ID_APPLICATION_CERTIFICATE_BASE64`: base64-encoded Developer ID Application `.p12`.\n- `DEVELOPER_ID_APPLICATION_CERTIFICATE_PASSWORD`: password for the exported `.p12`.\n- `KEYCHAIN_PASSWORD`: temporary CI keychain password.\n- `ASC_KEY_ID`: App Store Connect API key ID.\n- `ASC_ISSUER_ID`: App Store Connect issuer ID.\n- `ASC_PRIVATE_KEY`: contents of the App Store Connect `AuthKey_*.p8` private key.\n- `HOMEBREW_TAP_TOKEN`: GitHub token with write access to `chkwon/homebrew-tap`, used to update `Casks/pdflaser.rb` after each release.\n\nTo create the certificate secret from an exported `.p12` on macOS:\n\n```sh\nbase64 -i DeveloperIDApplication.p12 | pbcopy\n```\n\nRun the workflow manually with version `v0.1`, or push a `v0.1` tag. The workflow overrides the app marketing version from the tag/input, so `v0.1` produces app version `0.1`. The app remains outside the Mac App Store and does not add cloud storage or automatic document saving.\n\n## License\n\nPDF Laser is available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchkwon%2Fpdflaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchkwon%2Fpdflaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchkwon%2Fpdflaser/lists"}