Compare commits

..

2 Commits

2 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ def gen_docx(path = os.path.abspath('.')):
def pdf2img(pdf_path, pdf_name, zoom_x = 7, zoom_y = 7):
doc = fitz.open(pdf_path + os.sep + pdf_name) # 打开文档
if len(doc) != 1:
print(pdf_path + os.sep + pdf_name + "出错")
print("PDF 文件只能包含一页!")
return 1
for page in doc: # 遍历页面

Binary file not shown.