|
|
@@ -145,7 +145,8 @@ class PDFUtils:
|
|
|
'img_pil': img_dict['img_pil'],
|
|
|
'scale': img_dict.get('scale', dpi / 72),
|
|
|
'source_path': str(document_path),
|
|
|
- 'page_idx': idx # 原始页码索引
|
|
|
+ 'page_idx': idx, # 原始页码索引
|
|
|
+ 'page_name': f"{document_path.stem}_page_{idx + 1:03d}"
|
|
|
})
|
|
|
|
|
|
elif document_path.suffix.lower() in ['.png', '.jpg', '.jpeg', '.bmp', '.tiff', '.tif']:
|