diff --git a/camelot/backends/ghostscript_backend.py b/camelot/backends/ghostscript_backend.py index 1de7da19..107b5ba2 100644 --- a/camelot/backends/ghostscript_backend.py +++ b/camelot/backends/ghostscript_backend.py @@ -11,9 +11,10 @@ def installed_posix(): def installed_windows(): - library = find_library( - "".join(("gsdll", str(ctypes.sizeof(ctypes.c_voidp) * 8), ".dll")) - ) + try: + library = ctypes.WinDLL('gsdll') + except FileNotFoundError: + library = ctypes.WinDLL('gsdll64') return library is not None