File tree Expand file tree Collapse file tree 1 file changed +18
-22
lines changed Expand file tree Collapse file tree 1 file changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -42,28 +42,24 @@ def Main():
42
42
43
43
pdf = PdfFileReader (open (pdfFile , "rb" ))
44
44
pdfNumberOfPages = pdf .getNumPages ()
45
-
46
- for i in range (pdfNumberOfPages ):
47
- i = i + 1
48
- print (i )
49
-
50
- # Fazendo leitura do arquivo completo e passando para a variável
51
- tableListOfDataFrames_lattice = tabula .read_pdf (
52
- pdfFile ,
53
- pages = i ,
54
- lattice = True ,
55
- multiple_tables = True ,
56
- guess = True ,
57
- silent = True
58
- )
59
- tableListOfDataFrames_stream = tabula .read_pdf (
60
- pdfFile ,
61
- pages = i ,
62
- stream = True ,
63
- multiple_tables = True ,
64
- guess = True ,
65
- silent = True
66
- )
45
+
46
+ # Fazendo leitura do arquivo completo e passando para a variável
47
+ tableListOfDataFrames_lattice = tabula .read_pdf (
48
+ pdfFile ,
49
+ pages = "all" ,
50
+ lattice = True ,
51
+ multiple_tables = True ,
52
+ guess = True ,
53
+ silent = True
54
+ )
55
+ tableListOfDataFrames_stream = tabula .read_pdf (
56
+ pdfFile ,
57
+ pages = "all" ,
58
+ stream = True ,
59
+ multiple_tables = True ,
60
+ guess = True ,
61
+ silent = True
62
+ )
67
63
68
64
# Indica que um arquivo completo foi lido com sucesso
69
65
setTerminalFile ("open" )
You can’t perform that action at this time.
0 commit comments