{"id":20581305,"url":"https://github.com/welterdevelopment/pdfjs.winui","last_synced_at":"2025-08-08T01:20:45.151Z","repository":{"id":183526401,"uuid":"444782606","full_name":"WelterDevelopment/PDFjs.WinUI","owner":"WelterDevelopment","description":"PDFjs wrapper for WinUI 3","archived":false,"fork":false,"pushed_at":"2024-10-19T17:59:51.000Z","size":49137,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T22:37:58.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/WelterDevelopment.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}},"created_at":"2022-01-05T11:44:04.000Z","updated_at":"2024-10-19T17:59:56.000Z","dependencies_parsed_at":"2023-11-07T19:27:43.754Z","dependency_job_id":"0ed70214-1315-4115-9b6a-c88ae1e6b121","html_url":"https://github.com/WelterDevelopment/PDFjs.WinUI","commit_stats":null,"previous_names":["welterdevelopment/pdfjs.winui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WelterDevelopment%2FPDFjs.WinUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WelterDevelopment%2FPDFjs.WinUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WelterDevelopment%2FPDFjs.WinUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WelterDevelopment%2FPDFjs.WinUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WelterDevelopment","download_url":"https://codeload.github.com/WelterDevelopment/PDFjs.WinUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242206045,"owners_count":20089255,"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-11-16T06:27:55.933Z","updated_at":"2025-03-06T12:16:50.052Z","avatar_url":"https://github.com/WelterDevelopment.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDFjs.WinUI\n\nThis is a WebView2-based wrapper of PDF.js for WinUI 3 / WinAppSDK. It is optimized to be used for PDF files generated by TeX. It uses the prebuilt version 2.12.313 from https://mozilla.github.io/pdf.js/getting_started/#download.\n\nIf you want to use your own version of PDF.js and just want to know how to get it to run within a WebView2 control, \"SetVirtualHostNameToFolderMapping()\" does the trick, e.g.:\n\n``` csharp\nprivate async void PDFjsViewerWebView_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)\n{\n\tstring path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);\n\tsender.CoreWebView2.SetVirtualHostNameToFolderMapping(\"pdfjs\", path, CoreWebView2HostResourceAccessKind.DenyCors);\n\tPDFjsViewerWebView.Source = new(\"https://pdfjs/web/viewer.html\");\n}\n```\n\n## Screenshot\n\n![Screenshot 2022-01-05 170246](https://user-images.githubusercontent.com/13318246/148249138-bf3800fe-cb4d-4437-92ec-1dcde2ef0a6f.png)\n\n## Features\n\n- Open a PDF file (StorageFile)\n- Change the theme (Light/Dark)\n- viewer.css has been tweaked to show Win11-styled scrollbars (adapting to the theme)\n- viewer.html and viewer.js have been tweaked to automatically show the outline instead of thumbnails.\n- viewer.html and viewer.js have been tweaked to always use page-width, like Overleaf does. Zooming is disabled.\n- Page property is two-way bindable\n\n## ToDo\n\n- SyncTeX functionality (scroll to a specific position; listen to double-click events)\n- Implement more two-way bindable properties\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelterdevelopment%2Fpdfjs.winui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelterdevelopment%2Fpdfjs.winui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelterdevelopment%2Fpdfjs.winui/lists"}