font issue
Temperedscarf9 opened this issue · comments
Before you asking
- I have tried the PDFMathTranslate-next and give feedback in PDFMathTranslate-next
- I have searched the existing issues
- I spend at least 5 minutes for thinking and preparing
- I have thoroughly and completely read the wiki.
- I have carefully checked the issue, and it is unrelated to the network environment.
Environment
**OS**:Ubuntu 22.04.4
**Python**:3.11.13
**pdf2zh**:1.9.10
How to install pdf2zh
source
Describe the bug
Maybe it's a network problem. When I translated a document for the first time, the console output INFO:pdf2zh.high_level:use font: seemed to be related to the font settings, but I tried the font path and it didn't have any effect. It always remained unchanged and ended the process after a few seconds.
Namespace(files=['/content/efficientnet.pdf'], debug=False, pages=None, vfont='', vchar='', lang_in='en', lang_out='zh', service='google', output='/content/', thread=4, interactive=False, share=False, flask=False, celery=False, authorized=None, prompt=None, compatible=False, onnx=None, serverport=None, dir=False, config=None, babeldoc=False, skip_subset_fonts=False, ignore_cache=False, mcp=False, sse=False)
[06/29/25 18:51:52] INFO INFO:pdf2zh.high_level:use font:
To Reproduce
- execute
!python3 -m pdf2zh.pdf2zh /content/efficientnet.pdf \ --output /content/
- see errors
Expected behavior
No response
Relevant log output
Origin PDF file
No response
Anything else?
No response
efficientnet.pdfThis is the input document, which can be downloaded from arxiv