How to View PDFs in React JS with React PDF Viewer

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • #reactPDFViewer #pdfviewer #reaction
    In this video, we'll show you how to use React PDF Viewer to view PDFs within your React applications.
    React PDF Viewer is a React component that lets you easily view and interact with PDFs within your React applications. We'll demonstrate how to use React PDF Viewer to view PDFs, navigate through them, and interact with the content. After watching this video, you'll be able to view PDFs within your React applications with ease!
    This React PDF Viewer tutorial will help you understand how to use the library and explore some of its features. After watching this video, you'll be able to view PDFs in React easily and without any third-party dependencies!
    package 1: npm install pdfjs-dist@2.15.349
    package 2: npm install @react-pdf-viewer/core@3.7.0
    package 3: npm i @react-pdf-viewer/default-layout

ความคิดเห็น • 51

  • @davlatberdinazarov179
    @davlatberdinazarov179 5 หลายเดือนก่อน

    The best solutions Yousaf bro I like your videos

  • @unowly
    @unowly 2 หลายเดือนก่อน

    Gotenberg would also be a valid option? Sure you need a minimal backend, but you can view and create via frontend.

  • @gauravpandey1454
    @gauravpandey1454 ปีที่แล้ว +1

    I appreciate it helped me in older react version for new u can go with react-pdf

  • @farfarjam
    @farfarjam ปีที่แล้ว +1

    thanks a lot for this video. It was really helpful

  • @succeedwithuttam2271
    @succeedwithuttam2271 10 หลายเดือนก่อน +5

    React PDF viewer is a paid library.

  • @DilpreetDhanjal-k7s
    @DilpreetDhanjal-k7s ปีที่แล้ว +1

    Can multiple plugins be implemented or there should be just one default having other plugins defined in it ?

  • @slingshot7602
    @slingshot7602 หลายเดือนก่อน

    can you tell about the boostrap part I mean how do you get it. it is giving error

  • @TECHNOCRAZE-dz5iz
    @TECHNOCRAZE-dz5iz หลายเดือนก่อน

    I am getting error it says Cannot read properties of undefined (reading 'current') what is the solution of it

  • @Harry-vs1xj
    @Harry-vs1xj ปีที่แล้ว +2

    how could i change the choose file button to go to a custom dir?

  • @vinaybandla574
    @vinaybandla574 ปีที่แล้ว

    Thanks buddy U save my time

  • @funfactor2290
    @funfactor2290 9 หลายเดือนก่อน

    I purchased this pdf library but I dont know where to put that productKey

  • @katyayanisahu6039
    @katyayanisahu6039 11 หลายเดือนก่อน

    Thank you very much sir

  • @jayroo10
    @jayroo10 ปีที่แล้ว

    will this work with React JS, wit h Type Script?? tjhanks

  • @jcarlo818
    @jcarlo818 ปีที่แล้ว +5

    its not free

  • @vavinashece5158
    @vavinashece5158 4 หลายเดือนก่อน

    Can you also provide code source git-hub link? It will be helpful if possible.

  • @tanmays4209
    @tanmays4209 6 หลายเดือนก่อน

    Can i provide the cloudinary pdf url to the

  • @ambient-alfaaz
    @ambient-alfaaz 9 หลายเดือนก่อน

    Hi yousuf.. can we access pdf into json in react?

  • @MR.ANONYMOUS-h9x
    @MR.ANONYMOUS-h9x ปีที่แล้ว +1

    hello sir, i want to know that how can i annotate/highlight text on pdf using this viewer as I want a permanent highlighting feature on pdf. can you help me to do so ????

    • @NursultanTilekuulu
      @NursultanTilekuulu 8 หลายเดือนก่อน

      The same things issue , could you able to solve it ?, if you could can share with me ?

  • @angelraulrecioguerrero9969
    @angelraulrecioguerrero9969 ปีที่แล้ว +1

    it doen't work for me, the reader on load takes to long to run maybe i need a promise

  • @shahzebhafeez1749
    @shahzebhafeez1749 3 หลายเดือนก่อน

    The API version "3.4.120" does not match the Worker version "2.15.349". I am getting this error , if you can help me resolve it would really be appreciated

    • @shahzebhafeez1749
      @shahzebhafeez1749 3 หลายเดือนก่อน +1

      Ok nevermind found the solution , just change the worker version , for someone who faces the same error

    • @anupam216
      @anupam216 2 หลายเดือนก่อน

      is it still working properly?
      I am getting some error,
      The above error occurred in the component:

  • @arifulwandt4978
    @arifulwandt4978 5 หลายเดือนก่อน

    I think React-pdf-viewer package needs a commercial license. It's not free

  • @jagajaga6908
    @jagajaga6908 ปีที่แล้ว

    _react_pdf_viewer_default_layout__WEBPACK_IMPORTED_MODULE_3__ is not a function
    who knows how to fix?

  • @QuestFire-OnePiece
    @QuestFire-OnePiece ปีที่แล้ว

    hey can we edit the field also using this library?

  • @otaviosouza3704
    @otaviosouza3704 10 หลายเดือนก่อน

    Invalid PDF structure. What is this?

  • @massrahman6516
    @massrahman6516 ปีที่แล้ว +1

    bro, what I have is an error, there is a reading , Module not found: Error: Can't resolve './PDFViewer.css' in 'D:\Latihan Ngulik\Payroll_app4\frontend\src\components'. ask for a solution🙏

    • @kameshsingh9402
      @kameshsingh9402 ปีที่แล้ว

      I am facing the same error in my react js project if you find any solution then reply me

  • @aadarshktofficial
    @aadarshktofficial ปีที่แล้ว

    Thanks it worked.

  • @halilakgun1608
    @halilakgun1608 ปีที่แล้ว

    next previos pages buttons not work

  • @hafizhzulian_
    @hafizhzulian_ ปีที่แล้ว +1

    is it possible to get the text in the pdf file ?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      I don't think. That is something elese to parse text from pdf a broad topic

  • @RuanSMC
    @RuanSMC 8 หลายเดือนก่อน

    Works for mobile version?

  • @srirampant3135
    @srirampant3135 ปีที่แล้ว

    it doesn't work in nextjs 12

  • @TomasVallejos-ud6qb
    @TomasVallejos-ud6qb ปีที่แล้ว

    Hi, can you upload your github repository of this project?

  • @slingshot7602
    @slingshot7602 หลายเดือนก่อน

    should share a git repo with the codes

  • @Akash-xv5sk
    @Akash-xv5sk ปีที่แล้ว

    which version of React is used in this project?

  • @ikhwanrahman9595
    @ikhwanrahman9595 ปีที่แล้ว

    how to use Protected Preview PDF ? Undownloadable

    • @MayankYadav-17
      @MayankYadav-17 ปีที่แล้ว

      Just hide the download button css

  • @nguyenbinhan7006
    @nguyenbinhan7006 ปีที่แล้ว +2

    It can view .docx file?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      I didn't test that you can try it.

    • @insxne__6319
      @insxne__6319 ปีที่แล้ว +1

      have you tested it with docs or excel?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      Not yet.

    • @insxne__6319
      @insxne__6319 ปีที่แล้ว +1

      @@codewithyousaf do ypu have an idea what cam i use for excel docs pptx?

    • @insxne__6319
      @insxne__6319 ปีที่แล้ว

      can**

  • @JaswanthPappala
    @JaswanthPappala ปีที่แล้ว +1

    git code