网站qq登录 开发,河南省建筑工程网,海阳建设局网站,东莞建网页1--官方仓库
https://github.com/ocrmypdf/OCRmyPDF
2--基本步骤
# 安装ocrmypdf库
sudo apt install ocrmypdf# 安装简体中文库
sudo apt-get install tesseract-ocr-chi-sim# 转换
# -l 表示使用的语言
# --force-ocr 防止出现以下错误#xff1a;ERROR - PriorOcrFoundE…1--官方仓库
https://github.com/ocrmypdf/OCRmyPDF
2--基本步骤
# 安装ocrmypdf库
sudo apt install ocrmypdf# 安装简体中文库
sudo apt-get install tesseract-ocr-chi-sim# 转换
# -l 表示使用的语言
# --force-ocr 防止出现以下错误ERROR - PriorOcrFoundError: page already has text! - aborting (use --force-ocr to force OCR)
# input.pdf 表示待转换的pdf
# output.pdf 表示转换后保存的pdf
ocrmypdf -l chi_sim input.pdf output.pdf --force-ocr
3--常见错误
Error1 ERROR - PriorOcrFoundError: page already has text! - aborting (use --force-ocr to force OCR) Solution 添加--force-ocr ocrmypdf -l chi_sim input.pdf output3.pdf --force-ocr