{"id":15059664,"url":"https://github.com/bburdette/pdf-element","last_synced_at":"2025-08-25T03:40:52.718Z","repository":{"id":35712131,"uuid":"216876369","full_name":"bburdette/pdf-element","owner":"bburdette","description":"pdf.js custom element for elm","archived":false,"fork":false,"pushed_at":"2022-05-11T21:26:00.000Z","size":45,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T21:01:50.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bburdette.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}},"created_at":"2019-10-22T17:52:31.000Z","updated_at":"2024-05-17T14:39:09.000Z","dependencies_parsed_at":"2022-08-08T23:30:11.564Z","dependency_job_id":null,"html_url":"https://github.com/bburdette/pdf-element","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fpdf-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fpdf-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fpdf-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fpdf-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bburdette","download_url":"https://codeload.github.com/bburdette/pdf-element/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166189,"owners_count":21058475,"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-09-24T22:46:25.633Z","updated_at":"2025-04-10T05:41:06.461Z","avatar_url":"https://github.com/bburdette.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bburdette/pdf-element\n\nThis elm package has an associated 'pdf-element' npm package; together they provide a\ncustom element for rendering PDFs in elm, using mozilla's pdf.js library.  Using a tool like \nparcel (which is very nice) to build the project is pretty much a requirement as of now. \nThere's a parcel project in the example folder.\n\nPdf documents live in javascript; you open and close them using Elm Cmds.  If an open Cmd is \nsuccessful, you should receive a Loaded msg in return; otherwise you'll get an Error.\n\nWhen you open a pdf, you give it a name - just an arbitrary string.  You can use this name \nto make one or more custom elements that refer to the same document, with the pdfPage function.\nEach custom element is identified by its document name, page number, and sizing.  Its up to you \nto close the pdf when you're done with it, with a Cmd.\n\nTo make everything work you'll need to set up two ports on the Elm side - the PdfElement docs\nhas some sample code.  On the javascript side you'll need to wire up the sendPdfCommand port.\nSee example/index.js for that.\n\n[Documentation](http://package.elm-lang.org/packages/bburdette/pdf-element/latest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbburdette%2Fpdf-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbburdette%2Fpdf-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbburdette%2Fpdf-element/lists"}