ng2-pdf-viewer | 📄 PDF Viewer Component for Angular | Document Editor library

 by   VadimDez TypeScript Version: 9.1.5 License: MIT

kandi X-RAY | ng2-pdf-viewer Summary

kandi X-RAY | ng2-pdf-viewer Summary

ng2-pdf-viewer is a TypeScript library typically used in Editor, Document Editor, Angular applications. ng2-pdf-viewer has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

PDF Viewer Component for Angular
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ng2-pdf-viewer has a medium active ecosystem.
              It has 1217 star(s) with 383 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 26 open issues and 746 have been closed. On average issues are closed in 178 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ng2-pdf-viewer is 9.1.5

            kandi-Quality Quality

              ng2-pdf-viewer has 0 bugs and 0 code smells.

            kandi-Security Security

              ng2-pdf-viewer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ng2-pdf-viewer code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ng2-pdf-viewer is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ng2-pdf-viewer releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 1408 lines of code, 0 functions and 27 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ng2-pdf-viewer
            Get all kandi verified functions for this library.

            ng2-pdf-viewer Key Features

            No Key Features are available at this moment for ng2-pdf-viewer.

            ng2-pdf-viewer Examples and Code Snippets

            No Code Snippets are available at this moment for ng2-pdf-viewer.

            Community Discussions

            QUESTION

            NG_PERSISTENT_BUILD_CACHE=1 ng serve not working
            Asked 2022-Jan-20 at 18:32

            I am trying to use the persistent build cache feature provided by angular but look like its not working for me, I am trying the below command

            ...

            ANSWER

            Answered 2022-Jan-20 at 18:32

            You seem to be using Windows cmd to run the command, and hence you are getting the error.

            The command:

            Source https://stackoverflow.com/questions/70789569

            QUESTION

            Unable to show blob url in "pdf-viewer" => "ng2-pdf-viewer" in Angular 10
            Asked 2021-Dec-09 at 11:49

            I have an API which is returning uploaded file as blob. When I try to bind src with blob URL then it does not show anything, however, when I try to bind direct URL then it can show PDF file. Here is my code given below.
            My TS code

            ...

            ANSWER

            Answered 2021-Nov-16 at 09:22

            QUESTION

            Ionic App stopped working on IOS 15 (didfailprovisionalloadforframe)
            Asked 2021-Sep-24 at 12:03

            Right after the splash screen fades out, the app is stuck on a blank page leaving this error in the console (ProxyWeb::didFailProvisionalLoadForFrame)

            Note that the same app works perfectly on all previous IOS versions. I tried to change the webview plugin version, cordova-ios, and played around with angular build process but no luck.

            I suspect that the angular portion of the project does not initialize, cordova itself loads successfully but anything beyond that is just an empty blank screen.

            ...

            ANSWER

            Answered 2021-Sep-24 at 12:03

            Problem solved by a colleague, turned out a few providers (DatePipe, Location, Market, InAppBrowser) in app.component.ts and a router animation were causing the fuss.

            Source https://stackoverflow.com/questions/69282910

            QUESTION

            Convert pdf URL to Base64
            Asked 2021-Apr-07 at 09:56

            In my angular application, I used the below code for convert any file to Base64 string.

            ...

            ANSWER

            Answered 2021-Apr-03 at 12:11
            function getBase64(file) {
                 return new Promise((resolve, reject) => {
                     const reader = new FileReader();
                     reader.readAsDataURL(file);
                     reader.onload = () => resolve(reader.result);
                     reader.onerror = error => reject(error);
                });
            }
            
            var file = document.querySelector('#files > input[type="file"]').files[0];
            getBase64(file).then(
               data => console.log(data)
            );
            

            Source https://stackoverflow.com/questions/66929696

            QUESTION

            ERROR in ./node_modules/@angular/material/esm2015/select.js
            Asked 2021-Mar-04 at 04:12

            Please help as I am having error after upgrade my global @angular/cli to version 11. I have revert back to version 8. But now this error keep appear when I try to compile. I suspect is the version compatibility or mat-angular issue. I have already try to delete the node modules and reinstall using npm install. I have also try to use npm cache clean but still no result. I have follow the advice from this post. But the error still happen. Please advice.

            ...

            ANSWER

            Answered 2021-Mar-02 at 17:19

            QUESTION

            Angular Material stop working after moving projects into one main projet
            Asked 2021-Jan-15 at 08:22

            I was using Angular 11 with Angular Material 11. I group multiple angular project into one. All of those projects are working. Now, we are using Angular 9 with Angular Material 9.

            We only change the structure, but the code is the same (the app.module.ts is also the same). It's just that package are manage by the main project and not my own only.

            But there is a problem with this fusion. It's with the dialog which was :

            And know is :

            which is a little bit different.

            Parts of my app.module.ts :

            ...

            ANSWER

            Answered 2021-Jan-15 at 08:22

            I found the problem.

            The CSS file was buggy, and after a Material reinstall and importation of angular material's css, it works fine.

            Source https://stackoverflow.com/questions/65722350

            QUESTION

            Liferay js bundler - unused node modules not removed
            Asked 2020-Dec-10 at 10:03

            I am using Liferay 7.3.5 and building an Angular Portlet. I am finding it very difficult to experiment with different modules (or versions of the same module) because, somehow, the final jar OSGI module does contain all the modules I have been played with and not the only ones that are in the package.json file.

            As an example, I have added "ng2-pdf-viewer": "5.3.4" and then switched it to "ng2-pdf-viewer": "6.3.0". I was expecting that the final jar file to contain only the 6.3.0 version, but it actually contains both - the 5.3.4 and 6.3.0. This happens for all the other modules I have been playing with. So, basically, what I have in the package.json file is not reflected in the final .jar file and I am not sure how to clear the cache that is just keeping all unused dependencies.

            I have also removed all folders from the node_modules folder, but no success afterward.

            How can I purge/clean the context in order to have a real state?

            ...

            ANSWER

            Answered 2020-Dec-10 at 10:03

            I did not find a full solution, but it is something that worked enough for me - I have done the following:

            1. delete node_modules folder from eclipse-workspace\modules
            2. executed gradle clean from eclipse gradle tasks (this will clean the build folder of the project and doesn't anything to do with the node_modules folder)
            3. executed npm install from eclipse-workspace\modules
            4. build again full project

            Important notes: I have also noticed that, even though I have made all this cleaning above, there were desynchronizations between my package.json and package-lock.json - I mean, I had version "ng2-pdf-viewer": "5.2.3" in package.json file, but in the generated package-lock.json I had "ng2-pdf-viewer": "5.3.4". I have just triggered twice the build process and in the end the files synched. Even though the package-lock.json file was correct this time, both modules were packed in the Liferay module .jar - I mean, there were both 5.2.3 and 5.3.4 versions. I could only keep one of them when I switch in the package.json file to the newer version.

            Source https://stackoverflow.com/questions/65188683

            QUESTION

            Search with accented characters in pdf.js
            Asked 2020-Oct-28 at 10:28

            I am using ng2-pdf-viewer library to display some pdfs. I was asked to include a search bar for these pdfs and I did by using this command available in PdfFindController from pdf.js

            ...

            ANSWER

            Answered 2020-Oct-28 at 10:28

            So you have to modify lib in order to accept this characters. This can be tricky and may depend on pdfjs lib version. In my case I modify version 2.4.456. Here is source code for pdf-find-controller.js https://drive.google.com/file/d/1pbDG7gmeBpPp8soC1MNOyXVRYxf5AomD/view?usp=sharing this the only file you should change.

            Then you should compile library again using these commands:

            Source https://stackoverflow.com/questions/64499633

            QUESTION

            ERROR:Module not found: Error: Can't resolve 'fs' in ***/node_modules/ng2-pdf-viewer/__ivy_ngcc__/node_modules/pdfjs-dist/build
            Asked 2020-Sep-14 at 13:33

            I am trying to migrate my angular 8 code to angular 9.

            I am seeing below errors when I started the server.

            The update went fine. Please give some suggestions on this error.

            Thank you in advance!!

            ...

            ANSWER

            Answered 2020-Sep-14 at 13:33

            I had same issue while adding PDF Js library in Angular 8 project. You can add below code in package.json it will fix the error.

            Source https://stackoverflow.com/questions/63253804

            QUESTION

            Getting ERROR while ng build --prod "./node_modules/ng2-pdf-viewer/fesm5/ng2-pdf-viewer.js"
            Asked 2020-Jul-17 at 12:03

            For production build i am using ng build --prod command but getting this error


            package.json

            ...

            ANSWER

            Answered 2020-Jul-17 at 12:03

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ng2-pdf-viewer

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/VadimDez/ng2-pdf-viewer.git

          • CLI

            gh repo clone VadimDez/ng2-pdf-viewer

          • sshUrl

            git@github.com:VadimDez/ng2-pdf-viewer.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link