{"id":15172104,"url":"https://github.com/jon2g/mauipdfjsviewer","last_synced_at":"2025-08-09T09:30:08.640Z","repository":{"id":241147295,"uuid":"804458675","full_name":"Jon2G/MauiPdfJSViewer","owner":"Jon2G","description":"A implementation of pdfjs for android wrapped into a nuget so you can just install and use it. Have fun :). Based on https://github.com/jfversluis/MauiPdfJsViewerSample","archived":false,"fork":false,"pushed_at":"2024-07-08T01:36:24.000Z","size":5491,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T03:22:25.360Z","etag":null,"topics":["android","contentview","maui","pdf","pdfviewer","viewer","xamarin"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Jon2G.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}},"created_at":"2024-05-22T16:17:13.000Z","updated_at":"2024-09-07T10:28:49.000Z","dependencies_parsed_at":"2024-05-22T17:43:46.789Z","dependency_job_id":"f5b25ad9-68b0-48d6-bbe1-723686f62085","html_url":"https://github.com/Jon2G/MauiPdfJSViewer","commit_stats":null,"previous_names":["jon2g/mauipdfjsviewer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jon2G%2FMauiPdfJSViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jon2G%2FMauiPdfJSViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jon2G%2FMauiPdfJSViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jon2G%2FMauiPdfJSViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jon2G","download_url":"https://codeload.github.com/Jon2G/MauiPdfJSViewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247944,"owners_count":19440879,"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":["android","contentview","maui","pdf","pdfviewer","viewer","xamarin"],"created_at":"2024-09-27T09:40:46.225Z","updated_at":"2025-02-11T06:31:16.686Z","avatar_url":"https://github.com/Jon2G.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MauiPdfJSViewer\n\n[![NuGet version (PdfJSViewer-MAUI)](https://img.shields.io/nuget/v/PdfJSViewer-MAUI.svg)](https://www.nuget.org/packages/PdfJSViewer-MAUI)\n\n A implementation of pdfjs for android wrapped into a nuget so you can just install and use it. Have fun :). \n \n Based on \n https://github.com/jfversluis/MauiPdfJsViewerSample\n\n \n Be sure to meet pdf.js Apache license details in your app  https://github.com/mozilla/pdf.js\n \n![Recording 2024-05-22 155352](https://github.com/Jon2G/MauiPdfJSViewer/assets/24820069/2d7bc38b-2bc2-42e0-a5f0-e9316917a266)\n\nUsage:\nXAML\n```\n        \u003cpdfjs:PdfJsWebView x:Name=\"pdfJsViewer\" /\u003e\n```\nC#\n```\n        private void Button_Clicked_FromAssets(object sender, EventArgs e)\n        {\n            pdfJsViewer.LoadPdfFromMauiAssets(\"sample.pdf\");\n        }\n\n        private async void Button_Clicked_FromStream(object sender, EventArgs e)\n        {\n            using var stream = await FileSystem.OpenAppPackageFileAsync(\"sample.pdf\");\n            pdfJsViewer.LoadPdfFromSteam(stream);\n\n        }\n\n        private async void Button_Clicked_FromPath(object sender, EventArgs e)\n        {\n            string fileName = $\"{Guid.NewGuid():N}.pdf\";\n\n            string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), fileName);\n\n            using var pdfStream = await FileSystem.OpenAppPackageFileAsync(\"sample.pdf\");\n            using (FileStream file = new FileStream(filePath, FileMode.Create, FileAccess.Write))\n                pdfStream.CopyTo(file);\n\n            pdfJsViewer.LoadPdfFromPath(filePath);\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjon2g%2Fmauipdfjsviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjon2g%2Fmauipdfjsviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjon2g%2Fmauipdfjsviewer/lists"}