如何在使用 Python 运行时停止 wkhtmltopdf.exe 弹出窗口 [英] How to stop wkhtmltopdf.exe pop-up while running it with Python
问题描述
我正在使用 wkhtmltopdf.exe 使用 python 将 html 转换为 pdf.wkhtmltopdf.exe 的弹出窗口使我在运行它时很难处理任何其他事情.我必须转换大约 20 万个以上的文件,并且必须同时处理其他事情.但它真的不让我做其他事情.
I am using wkhtmltopdf.exe for converting html to pdf using python. The pop-up window of wkhtmltopdf.exe making it very difficult for me to work on any other things while running it. I have to convert around 200K+ files and have to work on something else simultaneously. But its really not letting me to work on anything else.
有没有办法阻止它或在后台运行它?非常感谢您的帮助.
Is there a way of stopping this or running it in background? I really appreciate your help.
附注.抱歉,我是新手,不知道有什么其他方法可以阻止它.
PS. Sorry I am new to it, don't know any other way to stop it.
我使用的是 wkhtmltox-0.12.2.2_msvc2013-win64 软件
I am using wkhtmltox-0.12.2.2_msvc2013-win64 software
推荐答案
于是我解决了问题!使用 py2exe 使我的 python 文件可执行并使用了 .py 文件.
So I solved the problem! made my python file executable using py2exe and used the .py file.
http://www.py2exe.org/index.cgi/Tutorial
不再弹出命令提示符窗口.
It is no more popping the command prompt window.
这篇关于如何在使用 Python 运行时停止 wkhtmltopdf.exe 弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!