×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
1
6 comments block


[ - ] anon 1566128 1 point 1.4 yearsDec 16, 2023 23:57:43 ago (+1/-0)

You have to buy windows 10 to cooy and paste from pdf

[ - ] anon 1566128 0 points 1.4 yearsDec 17, 2023 04:39:38 ago (+0/-0)

Ctr f and v

[ - ] anon 2862594 0 points 1.4 yearsDec 17, 2023 01:46:09 ago (+0/-0)*

#install PyPDF2
pip install PyPDF2

#importing all the required modules
import PyPDF2

#creating a pdf reader object
reader = PyPDF2.PdfReader('example.pdf')

#print the number of pages in pdf file
print(len(reader.pages))

#print the text of the first page
print(reader.pages[0].extract_text())


import re
>> line = "should we use regex more often? let me know at [email protected]"
>> match = re.search(r'[\w.+-]+@[\w-]+\.[\w.-]+', line)
>> match.group(0)
'[email protected]'

>> match = re.findall(r'[\w.+-]+@[\w-]+\.[\w.-]+', line)
>> match
['[email protected]', '[email protected]']

Just clean that up

https://stackoverflow.com/questions/1180115/add-text-to-existing-pdf-using-python

[ - ] anon 1806146 1 point 1.4 yearsDec 17, 2023 02:31:46 ago (+1/-0)

I think you supposed to say "easy" "simple" and "just" every other word.

[ - ] anon 2802434 0 points 1.4 yearsDec 17, 2023 00:48:41 ago (+0/-0)

I depends on the pdf reader. Search the help file. Usually there is a way to put it into "text selection mode" of some sort, then you can Ctrl+C like normal.

[ - ] anon 5757160 0 points 1.4 yearsDec 17, 2023 00:07:26 ago (+0/-0)

Highlight it and copy