I read an encrypted Pdf and when looking for the list below it tells me that it does not find anything, it seems to me that my regular expression is wrong
import PyPDF2
import re
file = open('imagen.pdf', 'rb')
pdfreader = PyPDF2.PdfFileReader(file)
if pdfreader.isEncrypted:
pdfreader.decrypt('')
pageobj = pdfreader.getPage(0)
pdftext = pageobj.extractText()
tipo1 = re.match(r'(([a-zA-Z]{1,4})[0-9]{1,5}())', pdftext)
the regular expression has to find the following:
VGE07011_004.IFD
VGH50052_007.IFD
VIE01039.012
VTGE0037
Vie01025_001.IFD