Commit 3cec329b authored by Robin Tissot's avatar Robin Tissot
Browse files

Code cleanup.

parent 5ca031bc
......@@ -93,8 +93,6 @@ class PdfParser(ParserDocument):
for i in range(0, n_pages):
page = self.doc.crop(0, i * page_height, page_width, page_height)
# page.write_to_file(filename)
# new_input.append((filename, pdf_format.format(**dest_dict) + suffix))
part = DocumentPart(document=self.document)
part.image.save('%s_page_%d.png' % (self.file.name, i+1),
ContentFile(page.write_to_buffer('.png')))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment