{"id":23338756,"url":"https://github.com/appfeel/pdf-component","last_synced_at":"2025-04-07T13:44:41.767Z","repository":{"id":57321352,"uuid":"453652420","full_name":"appfeel/pdf-component","owner":"appfeel","description":"Web custom component to embed a pdf viewer in any html","archived":false,"fork":false,"pushed_at":"2022-02-07T19:06:24.000Z","size":243,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-30T02:22:37.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/appfeel.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":"2022-01-30T10:45:27.000Z","updated_at":"2022-01-30T19:39:55.000Z","dependencies_parsed_at":"2022-08-26T01:11:01.241Z","dependency_job_id":null,"html_url":"https://github.com/appfeel/pdf-component","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfeel%2Fpdf-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfeel%2Fpdf-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfeel%2Fpdf-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfeel%2Fpdf-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appfeel","download_url":"https://codeload.github.com/appfeel/pdf-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247666005,"owners_count":20975785,"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-12-21T03:16:19.720Z","updated_at":"2025-04-07T13:44:41.739Z","avatar_url":"https://github.com/appfeel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# pdf-component\n\nWeb component to render pdf documents on any html.\n\n## Javascript\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/pdf-component/dist/pdf-component/pdf-component.esm.js\"\u003e\u003c/script\u003e\n\n\u003cpdf-component src=\"path-to-document.pdf\"\u003e\u003c/pdf-component\u003e\n```\n\n## React\n\n```bash\nnpm i pdf-component-react\n```\n\n```tsx\nimport { PdfComponent } from 'component-library-react';\n\nrender() {\n    return \u003cPdfComponent src=\"path-to-document.pdf\" /\u003e;\n}\n```\n\n\n## Vue\n\n```bash\nnpm i pdf-component\n```\n\n```ts\nimport Vue from 'vue';\nimport App from './App.vue';\n\nimport { applyPolyfills, defineCustomElements } from 'pdf-component/loader';\n\nVue.config.productionTip = false;\n\n// Tell Vue to ignore all components defined in the pdf-component\n// package.\nVue.config.ignoredElements = [/pdf-component/];\n\n// Bind the custom elements to the window object\napplyPolyfills().then(() =\u003e {\n    defineCustomElements();\n});\n\nnew Vue({\n    render: h =\u003e h(App)\n}).$mount('#app');\n```\n\nThe components should then be available in any of the Vue components\n\n```ts\nrender() {\n    return (\n      \u003cdiv\u003e\n        \u003cpdf-component src=\"path-to-document.pdf\"\u003e\u003c/pdf-component\u003e\n      \u003c/div\u003e\n    );\n}\n```\n\nMore info: https://stenciljs.com/docs/vue\n\n## Angular\n\n```bash\nnpm i pdf-component-angular\n```\n\n```ts\nimport { PdfComponent } from 'pdf-component-angular';\nimport { SomeComponent } from './some.component';\n\n@NgModule({\n  imports: [PdfComponent],\n  declarations: [SomeViewComponent],\n  exports: [SomeComponent]\n})\nexport class SomeViewModule {}\n```\n\nUsage in your templates:\n\n```html\n\u003cpdf-component src=\"path-to-document.pdf\"\u003e\u003c/pdf-component\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfeel%2Fpdf-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappfeel%2Fpdf-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfeel%2Fpdf-component/lists"}