add config file for default configuration, fix a bug that close powerpoint after cropping

This commit is contained in:
2021-06-03 11:32:22 +08:00
parent 3b9b8a5a16
commit 681af4b36a
3 changed files with 30 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ def crop(args):
print('convert {0} to {1}'.format(infile, inbase + '.pdf'))
slides.SaveAs(inbase + '.pdf', 32)
slides.close()
powerpoint.Quit()
# powerpoint.Quit()
# read comments.
ppt = Presentation(infile)
slides = ppt.slides