Skip to content

Commit

Permalink
2021-11-01 17:11 - add file browser func for many files
Browse files Browse the repository at this point in the history
  • Loading branch information
a5892731 committed Nov 1, 2021
1 parent 77e0726 commit b4c028b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ def __init__(self, filename, input_path, output_path, input_file_type):

class PdfFile(File):
def __init__(self, filename, input_path = "pdf", output_path = 'png', input_file_type = ".pdf"):
super().__init__(filename, input_path = "pdf", output_path = 'png', input_file_type = ".pdf")
super().__init__(filename, input_path, output_path, input_file_type)

self.import_pdf_file_pages()
self.convert_pdf_to_png(filename)

if output_path == "png":
self.convert_pdf_to_png(filename)
else:
print("wrong format")


def import_pdf_file_pages(self):
Expand Down
Binary file removed png/file1.png
Binary file not shown.
Binary file removed png/file2.png
Binary file not shown.
Binary file removed png/file3.png
Binary file not shown.

0 comments on commit b4c028b

Please sign in to comment.