{"id":16163490,"url":"https://github.com/marianfoo/ui5-cc-pdfviewer","last_synced_at":"2025-03-18T22:31:17.718Z","repository":{"id":158656861,"uuid":"633777526","full_name":"marianfoo/ui5-cc-pdfviewer","owner":"marianfoo","description":"The PDFViewer is a custom UI5 control that enables you to view PDF's by using a base64 data uri instead of a file URL","archived":false,"fork":false,"pushed_at":"2023-05-03T14:01:39.000Z","size":91428,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T00:23:46.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marianfoo.github.io/ui5-cc-pdfviewer/","language":"JavaScript","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/marianfoo.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":"2023-04-28T08:55:15.000Z","updated_at":"2024-08-15T20:22:12.000Z","dependencies_parsed_at":"2023-05-31T07:27:58.120Z","dependency_job_id":null,"html_url":"https://github.com/marianfoo/ui5-cc-pdfviewer","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/marianfoo%2Fui5-cc-pdfviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianfoo%2Fui5-cc-pdfviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianfoo%2Fui5-cc-pdfviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianfoo%2Fui5-cc-pdfviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marianfoo","download_url":"https://codeload.github.com/marianfoo/ui5-cc-pdfviewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318612,"owners_count":20433943,"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-10-10T02:35:58.184Z","updated_at":"2025-03-18T22:31:17.709Z","avatar_url":"https://github.com/marianfoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UI5Lab Library PDFViewer\n\n**This is a fork of https://github.com/lemaiwo/UI5LabLibraryPDFViewer!**\n\nThe PDFViewer is a custom UI5 control that enables you to view PDF's by using a base64 data uri instead of a file URL. This can be useful in case you want to preview a PDF that you want to upload without uploading it.\n\n## Demo\n\nIn folder `test/pdfviewer`, execute `npm install` and upload a PDF file. Then run `npm start`.\n\n## Usage\n\n### Include the library in your project\n\n1. Install Control\n\n```bash\nnpm install \"ui5-cc-pdfviewer\"\n```\n\n2. Configure the manifest.json\n\n```json\n    \"resourceRoots\": {\n      \"cc.pdfviewer\": \"./thirdparty/cc/pdfviewer\",\n      \"pdfjs-dist\": \"./thirdparty/cc/pdfviewer/pdfjs-dist/build\"\n    },\n```\n\n3. Use the PDF Control\n\n```xml\n\u003cmvc:View controllerName=\"pdfviewer.controller.Main\"\n    xmlns:mvc=\"sap.ui.core.mvc\" displayBlock=\"true\"\n    xmlns=\"sap.m\" xmlns:u=\"sap.ui.unified\" xmlns:pdf =\"cc.pdfviewer\"\u003e\n    \u003cPage id=\"page\" title=\"{i18n\u003etitle}\"\u003e\n        \u003ccontent\u003e\n            \u003cu:FileUploader id=\"upload\" fileType=\"pdf\" name=\"upload\" tooltip=\"Upload your image\" change=\"onFileChange\" maximumFileSize=\"10\" sameFilenameAllowed=\"true\"\u003e\u003c/u:FileUploader\u003e\n            \u003cButton text=\"Open PDF in dialog\" press=\"onOpenPDFViewer\"/\u003e\n            \u003cpdf:PdfViewer id=\"pdfViewer\" pdfSource=\"{/pdfsource}\" height=\"700px\"/\u003e\n        \u003c/content\u003e\n    \u003c/Page\u003e\n\u003c/mvc:View\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianfoo%2Fui5-cc-pdfviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarianfoo%2Fui5-cc-pdfviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianfoo%2Fui5-cc-pdfviewer/lists"}