Camelot reading
This commit is contained in:
@ -2,12 +2,16 @@ import argparse
|
||||
import os
|
||||
|
||||
import contabilidad.pdf as pdf
|
||||
import contabilidad.text_handler as th
|
||||
|
||||
|
||||
def main(args):
|
||||
filename = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data', args.filename))
|
||||
obj = pdf.get_text(filename, args.password)
|
||||
obj = pdf.get_data(filename, args.password)
|
||||
print(obj)
|
||||
obj = pdf.get_text(filename, args.password)
|
||||
text = th.text_cleanup(obj, filename=str(args.filename))
|
||||
print(text)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user