-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
29 lines (23 loc) · 992 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
__license__ = 'GPL v3'
__copyright__ = '2013, 2014, 2017, 2020, 2023 Jellby <[email protected]>'
__docformat__ = 'restructuredtext en'
from calibre.customize import InterfaceActionBase
load_translations()
class PrincePDFPlugin(InterfaceActionBase):
name = _('Prince PDF')
description = _('Converts to PDF using the Prince software (third-party)')
supported_platforms = ['linux', 'windows']
author = 'Jellby'
version = (1, 6, 0)
minimum_calibre_version = (6, 0, 0)
actual_plugin = 'calibre_plugins.prince_pdf.ui:InterfacePlugin'
def is_customizable(self):
return True
def config_widget(self):
from calibre_plugins.prince_pdf.config import ConfigWidget
return ConfigWidget()
def save_settings(self, config_widget):
config_widget.save_settings()
ac = self.actual_plugin_
if ac is not None:
ac.apply_settings()