~openlp-core/openlp/trunk

« back to all changes in this revision

Viewing changes to openlp/plugins/presentations/lib/pdfcontroller.py

  • Committer: Raoul Snyman
  • Date: 2019-06-05 04:53:18 UTC
  • mfrom: (2874 openlp)
  • mto: This revision was merged to the branch mainline in revision 2878.
  • Revision ID: raoul@snyman.info-20190605045318-bd2hsvmgrf7f5qew
HEAD

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
##########################################################################
22
22
import logging
23
23
import re
 
24
from shutil import which
24
25
from subprocess import CalledProcessError, check_output
25
26
 
26
27
from openlp.core.common import check_binary_exists, is_win
27
28
from openlp.core.common.applocation import AppLocation
28
 
from openlp.core.common.path import which
29
29
from openlp.core.common.settings import Settings
30
30
from openlp.core.display.screens import ScreenList
31
31
from openlp.plugins.presentations.lib.presentationcontroller import PresentationController, PresentationDocument
71
71
        Function that checks whether a binary is either ghostscript or mudraw or neither.
72
72
        Is also used from presentationtab.py
73
73
 
74
 
        :param openlp.core.common.path.Path program_path: The full path to the binary to check.
 
74
        :param pathlib.Path program_path: The full path to the binary to check.
75
75
        :return: Type of the binary, 'gs' if ghostscript, 'mudraw' if mudraw, None if invalid.
76
76
        :rtype: str | None
77
77
        """
182
182
        """
183
183
        Constructor, store information about the file and initialise.
184
184
 
185
 
        :param openlp.core.common.path.Path document_path: Path to the document to load
 
185
        :param pathlib.Path document_path: Path to the document to load
186
186
        :rtype: None
187
187
        """
188
188
        log.debug('Init Presentation Pdf')