Python Merge PDFs, Extract Text from PDFs using PyPDF2

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 13

  • @JoeVariousInterest
    @JoeVariousInterest 4 года назад +1

    Worked perfectly!

  • @SK-ck3qb
    @SK-ck3qb 5 лет назад +1

    Thank you! Tried this and it worked perfectly.

  • @christianlira1259
    @christianlira1259 4 года назад

    Thank you for putting this video together. Much appreciated.

    • @christianlira1259
      @christianlira1259 4 года назад +1

      Hi Ryan and wondering if you can assist me>
      The first lines of code all run OK and then I get this message
      ""NameError: name 'PyPDF2' is not defined"
      ...are you able to assist please? Thank you.

    • @RyanNoonan
      @RyanNoonan  4 года назад

      A few things to check:
      - Is the module installed and loaded?
      - Check that the module import is correct (spelling, etc.).
      - Make sure the python file name is not the same as the module. This can cause problems.
      - Check code for errors, etc.

    • @christianlira1259
      @christianlira1259 4 года назад

      pip install PyPDF2 (or newer 4) followed by import PyPDF2 (4) = works!. Thank you Ryan!

  • @olasoderlind5685
    @olasoderlind5685 4 года назад

    thanks it works
    but i cant change name the orgnal pdf after i can after closing Python IDLE perhaps add .close() somehere i tryde to put it htere but it make me blankpages :P
    the code dint work whit my scanned(HP DeskJet) pdfs.

  • @lernen4587
    @lernen4587 5 лет назад

    Hey, is it possible to use the /*.pdf with PyPDF2? So that you open all PDFs in one folder?

  • @computinghub9550
    @computinghub9550 4 года назад

    How to find and replace a string in a PDF file?

    • @RyanNoonan
      @RyanNoonan  4 года назад +1

      I'll look into possible ways using Python however an easy way is to use LibreOffice Draw. I have a tutorial that shows how.

    • @computinghub9550
      @computinghub9550 4 года назад

      @@RyanNoonan but i want to do it programmatically... Couldn't find good stuff on websites... :-(

    • @computinghub9550
      @computinghub9550 4 года назад

      Maybe I can use the LibreOffice tool using command line

    • @RyanNoonan
      @RyanNoonan  4 года назад

      LibreOffice can use Python for macros but from what I have seen the process is a little convoluted and I am not sure what the capabilities are for Draw.