@@ -88,6 +88,8 @@ transform_markdown(
8888 analysing_path = " temp" , # Optional: specify temporary folder
8989 ocr_size = " gundam" , # Optional: tiny, small, base, large, gundam
9090 models_cache_path = " models" , # Optional: model cache path
91+ dpi = 300 , # Optional: DPI for rendering PDF pages (default: 300)
92+ max_page_image_file_size = None , # Optional: max image file size in bytes, auto-adjust DPI if exceeded
9193 includes_footnotes = True , # Optional: include footnotes
9294 ignore_pdf_errors = False , # Optional: continue on PDF rendering errors
9395 ignore_ocr_errors = False , # Optional: continue on OCR recognition errors
@@ -107,6 +109,8 @@ transform_epub(
107109 analysing_path = " temp" , # Optional: specify temporary folder
108110 ocr_size = " gundam" , # Optional: tiny, small, base, large, gundam
109111 models_cache_path = " models" , # Optional: model cache path
112+ dpi = 300 , # Optional: DPI for rendering PDF pages (default: 300)
113+ max_page_image_file_size = None , # Optional: max image file size in bytes, auto-adjust DPI if exceeded
110114 includes_cover = True , # Optional: include cover
111115 includes_footnotes = True , # Optional: include footnotes
112116 ignore_pdf_errors = False , # Optional: continue on PDF rendering errors
0 commit comments