Python Forum
PyPDF2 Hanging When Trying to Open Corrupted PDF
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyPDF2 Hanging When Trying to Open Corrupted PDF
#3
Quote:where my code will just successfully skip this corrupted files and keep on going
Look up Python's try and except. In addition to Larz60+ suggestion, try converting it with either ImageMagick or PythonMagick to some other format and then back again, to see if that removes or corrects the corrupted part.
Reply


Messages In This Thread
RE: PyPDF2 Hanging When Trying to Open Corrupted PDF - by woooee - Nov-08-2018, 09:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python script is hanging while calling a procedure in database prasanthi417 4 624 Jan-17-2024, 02:33 PM
Last Post: deanhystad
  Downloaded file corrupted emont 5 934 Oct-01-2023, 11:32 AM
Last Post: snippsat
  PyPDF2 deprecation problem gowb0w 5 4,545 Sep-21-2023, 12:38 PM
Last Post: Pedroski55
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,654 Aug-07-2023, 05:32 AM
Last Post: DPaul
  Pypdf2 will not find text standenman 2 979 Feb-03-2023, 10:52 PM
Last Post: standenman
  pyPDF2 PDFMerger close pensding file japo85 2 2,500 Jul-28-2022, 09:49 AM
Last Post: japo85
Sad pandas writer create "corrupted" file freko75 1 2,898 Jun-14-2022, 09:57 PM
Last Post: snippsat
  Structuring and pivoting corrupted dataframe in pandas gunner1905 2 2,292 Sep-18-2021, 01:30 PM
Last Post: gunner1905
  PyPDF2 processing problem Pavel_47 6 9,889 May-04-2021, 06:58 AM
Last Post: chaitanya
  Error in Python3.6:free() Corrupted unsorted chunks error sameer_k 2 3,941 Mar-18-2020, 09:37 AM
Last Post: sameer_k

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020