PrincePDF: export epubs as .pdf files
(based on prince xml)
Current Version: "0.1"
This plugin is a very simple prince PDF output wrapper, which allows you to export the currently loaded epub as an .pdf file.
Credits: This plugin was inspired by Jellby's Calibre prince plugin. Jellby was also extremely helpful in tracking down a Windows prince issue and provided other helpful pointers. If you encounter problems with my plugin I strongly recommend that you give Jellby's more polished version a try, which also comes with a nice GUI.
System requirements
If you're using an older Sigil version, you'll need to install a Python 3.4.x interpreter (the plugin won't work with Python 2.7.x) and select its path in the Manage Plugins dialog box. You'll obviously also need to install prince, which can't be bundled with the plugin for licensing reasons. (Make sure to install prince in the default location.)
Note that prince will add a tiny watermark in the upper right corner of the first page. However, it can be easily deleted with Acrobat Reader.
Installation
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click the Python 3.4 button to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select PrincePDF_v0.1.zip. This will install the plugin, which you can select via Plugins > output > PrincePDF.
Preferences
This plugin doesn't come with a GUI, but you can change several settings via plugin preference settings. (All of these settings need to be terminated with a comma unless it's the last line in the .json file.)
1. There's a skeleton style.css file in the plugin folder that you can use to customize the pdf output. If you want to use it, update style.css file as needed and add the following line to PrincePDF.json:
2. By default the plugin will copy the pdf file to the user's desktop, but you can define a different folder using the following line:
Note that in Windows paths you'll need to have to write the backslash twice.
3. You can also define the following values: media, page_size, page_margin, no_author_style and no_default_style, which set the corresponding prince command line values.
For example, the following entry will change the page size to A4:
(Like style, no_author_style and no_default_style can only have the Boolean values true and false, without quotation marks.) For more information on the above settings, see the prince website.
Troubleshooting
If the output works, but you get unexpected results, locate the plugin.xml file in the plugin folder and change the autoclose value to false:
and restart Sigil.
This'll allow you to have a look at the command line parameters and the prince log file.
(based on prince xml)
Current Version: "0.1"
This plugin is a very simple prince PDF output wrapper, which allows you to export the currently loaded epub as an .pdf file.
Credits: This plugin was inspired by Jellby's Calibre prince plugin. Jellby was also extremely helpful in tracking down a Windows prince issue and provided other helpful pointers. If you encounter problems with my plugin I strongly recommend that you give Jellby's more polished version a try, which also comes with a nice GUI.
System requirements
If you're using an older Sigil version, you'll need to install a Python 3.4.x interpreter (the plugin won't work with Python 2.7.x) and select its path in the Manage Plugins dialog box. You'll obviously also need to install prince, which can't be bundled with the plugin for licensing reasons. (Make sure to install prince in the default location.)
Note that prince will add a tiny watermark in the upper right corner of the first page. However, it can be easily deleted with Acrobat Reader.
Installation
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click the Python 3.4 button to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select PrincePDF_v0.1.zip. This will install the plugin, which you can select via Plugins > output > PrincePDF.
Preferences
This plugin doesn't come with a GUI, but you can change several settings via plugin preference settings. (All of these settings need to be terminated with a comma unless it's the last line in the .json file.)
1. There's a skeleton style.css file in the plugin folder that you can use to customize the pdf output. If you want to use it, update style.css file as needed and add the following line to PrincePDF.json:
Code:
"style": true,
Code:
"output_dir": "C:\\Users\\User\\Desktop",
3. You can also define the following values: media, page_size, page_margin, no_author_style and no_default_style, which set the corresponding prince command line values.
For example, the following entry will change the page size to A4:
Code:
"page_size": "A4",
Troubleshooting
If the output works, but you get unexpected results, locate the plugin.xml file in the plugin folder and change the autoclose value to false:
Code:
<autoclose>false</autoclose>
This'll allow you to have a look at the command line parameters and the prince log file.