{"id":20393387,"url":"https://github.com/foxitsoftware/ngx-foxitpdfsdkforweb","last_synced_at":"2025-10-25T05:48:36.204Z","repository":{"id":38720189,"uuid":"199438669","full_name":"foxitsoftware/ngx-foxitpdfsdkforweb","owner":"foxitsoftware","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-10T20:35:54.000Z","size":32099,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T10:55:08.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxitsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license-key.js","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":"2019-07-29T11:19:37.000Z","updated_at":"2021-03-06T05:50:00.000Z","dependencies_parsed_at":"2025-01-15T10:13:13.534Z","dependency_job_id":"da1263f9-6b53-4154-81ac-774a4cd24c10","html_url":"https://github.com/foxitsoftware/ngx-foxitpdfsdkforweb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2Fngx-foxitpdfsdkforweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2Fngx-foxitpdfsdkforweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2Fngx-foxitpdfsdkforweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2Fngx-foxitpdfsdkforweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxitsoftware","download_url":"https://codeload.github.com/foxitsoftware/ngx-foxitpdfsdkforweb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241944533,"owners_count":20046777,"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-15T03:48:30.160Z","updated_at":"2025-10-25T05:48:31.164Z","avatar_url":"https://github.com/foxitsoftware.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-foxitpdfsdkforweb\nThis is Foxit pdf web sdk for Angular.\n\n## Install\nnpm install ngx-foxitpdfsdkforweb --save\n\n## Setup\n1 Modify your angular.json\n```\n\"assets\": [\n  ...,\n  {\"glob\": \"**/*\", \"input\": \"./node_modules/ngx-foxitpdfsdkforweb/lib\", \"output\": \"/node_modules/ngx-foxitpdfsdkforweb/lib\"}\n],\n```\n\n2 Modify your tsconfig.json\n```\n\"files\": [\n  ...\n  \"node_modules/ngx-foxitpdfsdkforweb/foxitWebPDFComponent.ts\"\n],\n```\n\n3 Add FoxitWebPDFComponent to app NgModule.\n```\nimport { FoxitWebPDFComponent } from 'ngx-foxitpdfsdkforweb';\n\n@NgModule({\n  declarations: [\n    ...\n    FoxitWebPDFComponent,\n  ],\n  ...\n})\n```\n4 Copy license-key.js to folder src/app and import.\n```\nimport { licenseSN, licenseKey} from './license-key';\n```\n\n\n## Use\n1 You can add the tag \u003cfoxit-webpdf\u003e\u003c/foxit-webpdf\u003e in the template and set attribute fileUrl. The style position MUST be absolute.\n```\n\u003cfoxit-webpdf #foxitWebPDF style=\"position: absolute;width:600px;height:800px;\" licenseSN=\"{{licenseSN}}\" licenseKey=\"{{licenseKey}}\" fileUrl=\"{{fileUrl}}\"\u003e\u003c/foxit-webpdf\u003e \n```\n### Attribute\n* licenseSN \n* licenseKey\n* fileUrl\n* password\n\n2 You can also open pdf in the typescript code.\n### Template\n```\n\u003cinput type=\"file\" (change)=\"openPDF($event)\"/\u003e\n\n\u003cfoxit-webpdf #foxitWebPDF style=\"position: absolute;width:600px;height:800px;\" licenseSN=\"{{licenseSN}}\" licenseKey=\"{{licenseKey}}\"\u003e\u003c/foxit-webpdf\u003e \n```\n\n### Component\n```\nimport { Component, Input, ViewChild } from '@angular/core';\nimport { licenseSN, licenseKey} from './license-key';\nimport { FoxitWebPDFComponent } from 'ngx-foxitpdfsdkforweb';\n\nexport class AppComponent {\n  @ViewChild('foxitWebPDF', {static: false}) foxitWebPDF:FoxitWebPDFComponent; \n  licenseSN = licenseSN;\n  licenseKey = licenseKey;\n\n\n  openPDF($event){\n    const fileSelected: File = $event.target.files[0];\n    this.foxitWebPDF.openFile(fileSelected);\n  }\n\n  openPDFByUrl(url:string){\n    this.foxitWebPDF.openPDFByHttpRangeRequest(url);\n  }\n}\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxitsoftware%2Fngx-foxitpdfsdkforweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxitsoftware%2Fngx-foxitpdfsdkforweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxitsoftware%2Fngx-foxitpdfsdkforweb/lists"}