- more verbose xml text output

This commit is contained in:
ari committed 2018-10-27 19:52:12 -04:00
1 parent 39280476e2
commit b4999d2010
11 files changed
+63 -27

No files matched your search

+5 -3
View File
@@ -7,16 +7,18 @@ from pdfmajor.converters import convert_file
def rel_path(*arg: List[str]) -> str:
return os.path.join(os.path.dirname(__file__), *arg)
EXT = 'xml'
EXT = 'html'
INPUT_FOLDER = rel_path("./pdf")
OUTPUT_FOLDER = rel_path(f"./output/{EXT}")
if not os.path.exists(OUTPUT_FOLDER):
os.makedirs(OUTPUT_FOLDER)
files = os.listdir(INPUT_FOLDER)
# files = ['colors.pdf']
# files = os.listdir(INPUT_FOLDER)
# files = ['fonts.pdf']
# files = ['bar-charts.pdf']
# files = ['font-color.pdf']
files = ['tables.pdf']
TOTAL = len(files)
for idx, file_name in enumerate(files):