Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

只想用生成双层的pdf的主要核心代码文件 #742

Open
1 task done
deict opened this issue Dec 16, 2024 · 5 comments
Open
1 task done

只想用生成双层的pdf的主要核心代码文件 #742

deict opened this issue Dec 16, 2024 · 5 comments

Comments

@deict
Copy link

deict commented Dec 16, 2024

Issues

  • I have browsed through the Issues. 我已浏览过Issues,确定没有重复的建议。

Expected behavior 预期的功能

生成双层的pdf的主要核心代码文件py,有那些,作者哥

Approximate reference (optional) 近似的参考(可选)

No response

@hiroi-sora
Copy link
Owner

  • 识别原PDF:UmiOCR-data\py_src\mission\mission_doc.py
  • 生成双层PDF:UmiOCR-data\py_src\ocr\output\output_pdf_layered.py

@deict
Copy link
Author

deict commented Dec 17, 2024

就是比如说pdf中即使有图片中包含文字,最后生成的pdf生成可复制可粘贴的双层pdf,也是把这个mission_doc.py和output_pdf_layered.py互相结合起来修改吗

@hiroi-sora
Copy link
Owner

pdf中即使有图片中包含文字,最后生成的pdf生成可复制可粘贴的双层pdf,也是把这个mission_doc.py和output_pdf_layered.py互相结合起来修改吗

是滴。首先用 mission_doc 扫描原始文件,得到OCR结果。然后用 output_pdf_layered 将OCR结果写入新的双层PDF文件。

@deict
Copy link
Author

deict commented Dec 17, 2024

如果我想在window启动端口,但是不想启动exe,也不在右下角显示应用图标,单纯的启动端口调用接口,容易修改吗,作者老哥

@hiroi-sora
Copy link
Owner

如果你想让软件在后台静默提供服务:

  1. 软件全局设置→窗口→ 勾选 启动时缩小到任务栏隐藏托盘图标
  2. 根据 我们的文档 ,通过HTTP接口来调用双层PDF生成功能。

如果你想从本项目中,将PDF识别模块的代码单独拆出去,用于你的项目,可能有一定的困难。因为 mission_doc.py和output_pdf_layered.py 也依赖一些基类、辅助函数、全局模块,需要你对本项目工程结构有一定了解才能分析。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants