This is the output when i try to extract text from the pdf when dealing with binary [Running] python -u "c:\Users\Lenovo\Desktop\Github Projects\PDF file opener(old)\script.py" PDF header: b'%PDF-1.3' xref start: 18788 Stream content (raw): b'x\x01\x9dZ\xcb\x92\xdbF\x12\xbc\xe3+\xfa\xc8\x89\xf0\x8c\xd9\r>\x8f^\xd9\x8a\xf0\xc6\xda!\x87\xc7\xbb\x87\r\x1f0$4j\x07\x08R\x040\x9f\xbb\xdf\xb2\x99\xd5U\rP\xa4d\x8d\xf6\x11\xe2\x80\x8dFuVV\xd6\x03\xfc\xe8~s\x1f\xdd\x1c\xff]\xf9\xe0\xd6\xdb\xe0\xce\xb5\xfb\x8fk\xdd\xf7o:\xefv\x9d\xf3\xae\xdb}\xfa\xfd{7' Encoding algorithm: FlateDecode Decoded stream content: b'q Q q 0 0 612 792 re W n /Cs1 cs 1 sc 0 0 612 792 re f 0.6000000 i 0 0 612 792\nre f 0.3019608 sc 0 i' ['Sample PDF', 'This is a simple PDF le. Fun fun fun.', 'pulvinar quis, nisl.', 'feugiat. Aenean pellentesque.', 'quam.'] Extracted text: Sample PDFThis is a simple PDF le. Fun fun fun.pulvinar quis, nisl.feugiat. Aenean pellentesque.quam.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.