Sample Header Ad - 728x90

How to run a PDF file with wine app (Foxit PDF Editor Pro)?

1 vote
1 answer
157 views
I want to create a Python function to open a PDF file with the Foxit PDF Editor Pro Application (wine app), my function is as follows:
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)
After running:
('/home/lediem/Dropbox/LATEX ALL/FILE HS ONLINE/tài liệu.pdf')
I get the error message:
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
even though my links are correct. Thank you very much!
Asked by tungsondkh (11 rep)
Feb 18, 2024, 09:44 AM
Last activity: Feb 29, 2024, 09:42 AM