forked from openlp/openlp
Use PyMuPDF over executables if not explicitly set
This commit is contained in:
parent
a3ef19dbd9
commit
2ee21a77c4
@ -127,6 +127,9 @@ class PdfController(PresentationController):
|
||||
self.mudrawbin = program_path
|
||||
elif program_type == 'mutool':
|
||||
self.mutoolbin = program_path
|
||||
elif PYMUPDF_AVAILABLE:
|
||||
self.also_supports = ['xps', 'oxps']
|
||||
return True
|
||||
else:
|
||||
# Fallback to autodetection
|
||||
application_path = AppLocation.get_directory(AppLocation.AppDir)
|
||||
@ -157,9 +160,6 @@ class PdfController(PresentationController):
|
||||
return True
|
||||
elif self.gsbin:
|
||||
return True
|
||||
elif PYMUPDF_AVAILABLE:
|
||||
self.also_supports = ['xps', 'oxps']
|
||||
return True
|
||||
return False
|
||||
|
||||
def kill(self):
|
||||
|
Loading…
Reference in New Issue
Block a user