如何使用 wine 应用程序(Foxit PDF Editor Pro)运行 PDF 文件?

如何使用 wine 应用程序(Foxit PDF Editor Pro)运行 PDF 文件?

我想创建一个Python函数来使用Foxit PDF Editor Pro应用程序(wine应用程序)打开PDF文件,我的函数如下:

def open_with_foxit(output_path):
     command = ["wine",
                "/home/lediem/Wine/FoxitPDFEditor/drive_c/Program Files (x86)/Foxit Software/Foxit PDF Editor/FoxitPDFEditor.exe",
                output_path]
     subprocess.Popen(command)

运行后:

open_with_foxit('/home/lediem/Dropbox/LATEX ALL/FILE HS ONLINE/tài liệu.pdf')

我收到错误消息:

wine: Read access denied for device L"\??\Z:\", FS volume label and serial are not available.
wine: Read access denied for device L"\??\Z:\", FS volume label and serial are not available.
wine: Read access denied for device L"\??\Z:\", FS volume label and serial are not available.
wine: Read access denied for device L"\??\Z:\", FS volume label and serial are not available.
Could not find Wine Gecko. HTML rendering will be disabled.
0180:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE

即使我的链接是正确的。非常感谢!

答案1

我发现解决方案是将Zdrive设置winecfg为to /home,然后将相应的路径替换为z:/lediem/Dropbox/LATEX ALL/FILE HS ONLINE/documents.pdf.

然后PDF文件就可以正常打开了。

相关内容