Adds documentation
[MRG] Adds documentation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Lattice
|
||||
|
||||
|
||||
extractor = Lattice(Pdf("files/column_span_1.pdf", clean=True), scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Lattice(Pdf("files/column_span_2.pdf"), clean=True, scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,13 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Lattice
|
||||
|
||||
|
||||
extractor = Lattice(
|
||||
Pdf("files/row_span_1.pdf", clean=True), fill='v', scale=40)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Lattice(
|
||||
Pdf("files/row_span_2.pdf", clean=True), fill='v', scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,13 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Lattice
|
||||
|
||||
|
||||
extractor = Lattice(Pdf("files/lines_in_background_1.pdf",
|
||||
clean=True), scale=30, invert=True)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Lattice(Pdf("files/lines_in_background_2.pdf",
|
||||
clean=True), scale=30, invert=True)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,11 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Lattice
|
||||
|
||||
|
||||
extractor = Lattice(Pdf("files/left_rotated_table.pdf", clean=True), scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Lattice(Pdf("files/right_rotated_table.pdf", clean=True), scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,11 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Lattice
|
||||
|
||||
|
||||
extractor = Lattice(Pdf("files/twotables_1.pdf", clean=True), scale=40)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Lattice(Pdf("files/twotables_2.pdf", clean=True), scale=30)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,8 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Stream
|
||||
|
||||
|
||||
extractor = Stream(Pdf("files/budget_2014-15.pdf",
|
||||
char_margin=1.0, clean=True))
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,13 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Stream
|
||||
|
||||
|
||||
extractor = Stream(Pdf("files/inconsistent_rows.pdf", char_margin=1.0),
|
||||
columns="65,95,285,640,715,780", ytol=10)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
|
||||
extractor = Stream(Pdf("files/consistent_rows.pdf", char_margin=1.0),
|
||||
columns="28,67,180,230,425,475,700", ytol=5)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
@@ -0,0 +1,8 @@
|
||||
from camelot import Pdf
|
||||
from camelot import Stream
|
||||
|
||||
|
||||
extractor = Stream(Pdf("files/missing_values.pdf",
|
||||
char_margin=1.0, clean=True), ncolumns=5)
|
||||
tables = extractor.get_tables()
|
||||
print tables
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user