{"repo":"VadimDez/ng2-pdf-viewer","free":true,"listed":false,"github":"https://github.com/VadimDez/ng2-pdf-viewer","clone":"git clone https://github.com/VadimDez/ng2-pdf-viewer.git","description":"📄 PDF Viewer Component for Angular","language":"TypeScript","stars":1348,"topics":["pdf-viewer-component","pdf","pdf-viewer","angular2","angular","angular12"],"license":"MIT","category":"media-processing","readme_excerpt":"Angular PDF Viewer PDF Viewer Component for Angular 5+ Demo page https://vadimdez.github.io/ng2-pdf-viewer/ Stackblitz Example https://stackblitz.com/edit/ng2-pdf-viewer Blog post https://medium.com/@vadimdez/render-pdf-in-angular-4-927e31da9c76 Overview Install Usage Options Render local PDF file Set custom path to the worker Search in the PDF Contribute Install Angular = 12 Partial Ivy compilated library bundles. Angular = 4 Angular : (pages-initialized) Property Type Required --- ---- --- (pages-initialized) callback Optional Get event when the pages are initialized. Define callback in your component: And then bind it to : (text-layer-rendered) Property Type Required --- ---- --- (text-layer-rendered) callback Optional Get event when a text layer is rendered. Define callback in your component: And then bind it to : (error) Property Type Required --- ---- --- (error) callback Optional Error handling callback Define callback in your component's class Then add it to pdf-component in component's template (on-progress) Property Type Required --- ---- --- (on-progress) callback Optional Loading progress callback - provides progress information total and loaded bytes. Is called several times during pdf loading phase. Define callback in your component's class Then add it to pdf-component in component's template Render local PDF file In your html template add input : and then add onFileSelected method to your component: Set custom path to the worker By default the worker is loaded ","default_branch":null,"files":null,"tree":[],"storefront":"/r/VadimDez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/VadimDez/ng2-pdf-viewer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}