pypdflite/pdflite.py
def set_display_mode(self, zoom='fullpage', layout='continuous'):
        """ Set the default viewing options. """
        self.zoom_options = ["fullpage", "fullwidth", "real", "default"]
        self.layout_options = ["single", "continuous", "two", "default"]

        if zoom in self.zoom_options or (isinstance(zoom, int) and 0 < zoom <= 100):
            self.zoom_mode = zoom
        else:
            raise Exception('Incorrect zoom display mode: ' + zoom)

        if layout in self.layout_options:
            self.layout_mode = layout
        else:
            raise Exception('Incorrect layout display mode: ' + layout)
def set_display_mode(self, zoom='fullpage', layout='continuous'):
        self.zoom_options = ["fullpage", "fullwidth", "real", "default"]
        self.layout_options = ["single", "continuous", "two", "default"]

        if zoom in self.zoom_options or (isinstance(zoom, int) and 0 < zoom <= 100):
            self.zoom_mode = zoom
        else:
            raise Exception('Incorrect zoom display mode: ' + zoom)

        if layout in self.layout_options:
            self.layout_mode = layout
        else:
            raise Exception('Incorrect layout display mode: ' + layout)
def set_display_mode ( self , zoom = 'fullpage' , layout = 'continuous' ) : self . zoom_options = [ "fullpage" , "fullwidth" , "real" , "default" ] self . layout_options = [ "single" , "continuous" , "two" , "default" ] if zoom in self . zoom_options or ( isinstance ( zoom , int ) and 0 < zoom <= 100 ) : self . zoom_mode = zoom else : raise Exception ( 'Incorrect zoom display mode: ' + zoom ) if layout in self . layout_options : self . layout_mode = layout else : raise Exception ( 'Incorrect layout display mode: ' + layout )
Set the default viewing options.
Set the default viewing options .