MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   PrincePDF: PDF export (https://www.mobileread.com/forums/showthread.php?t=274972)

Doitsu 06-07-2016 04:59 AM

PrincePDF: PDF export
 
1 Attachment(s)
PrincePDF: export epubs as .pdf files
(based on prince xml)

Current Version: "0.3.0"

This plugin is a very simple prince PDF output wrapper, which allows you to export the currently loaded epub as a .pdf file.

This plugin does not support non-standard epubs. Select Tools > Restructure Epub to Sigil Norm before running this plugin with Sigil 1.0 and higher.

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.3.0.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 as needed and add the following line to PrincePDF.json:

Code:

  "style": true,
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:

Code:

  "output_dir": "C:\\Users\\User\\Desktop",
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:

Code:

  "page_size": "A4",
(Note that 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.

Postprocessing with cpdf

If you have cpdf installed, you can reduce the size of the .pdf file generated by Prince with cpdf. (Depending on the epub source files, this'll reduce the file size by up to 10%.)

This option is disabled by default. To enable it, change the following entry in PrincePDF.json:

Code:

  "cpdf": true,
(If this entry is the last entry in PrincePDF.json, remove the trailing comma.)

You'll also need to download the cpdf Community Release binaries and copy the binary file to a system folder, for example C:\Windows.

License: GNU General Public License v3 (GPL-3)

KevinH 06-07-2016 02:06 PM

Hi Doitsu,

Wow you have been busy. I agree with Kovid that if given a preference between fixed layout format epubs and pdf, I would choose pdf. So it is nice to have something like this so save people a few steps.

I will add it to the Plugin Index.

Thanks!

Auramazda 06-27-2016 09:17 PM

Hi, great plug-in it work perfectly. I normally use calibre to convert epub to pdf so I was very happy to use Sigil also for this conversion, I already use the great kindlegen plugin for mobi and azw3. So I tried PrincePDF on various book and it work fine but, I am amazed to say this, I think that the calibre pdf are better than the prince pdf.
The prince pdf:
have good margin of the page;
the hyperlink between page work.
On the cons side:
the font preset is times new roman, but I use it normally so it's not really a problem;
If the image is more large than the page they don't got risize;
I also have some problem with little immage;
the TAB space don't get recognized;

I will still try it with more book but first I want to ask two question:
1 - How set the dimension of the font in the style.css for h1, h2,...?
2 - How can change font if I need?
Also a style.css example with more indication will be usefull

The plug-in is great but the program princepdf is only 7/10

Doitsu 06-28-2016 03:16 AM

Quote:

Originally Posted by Auramazda (Post 3342436)
the TAB space don't get recognized;

Tabs are ignored in HTML, uses paragraph styles instead.

E.g.

Code:

p {
    margin-top: .25em;
    margin-bottom: .25em;
    text-indent: 1.25em;
    -epub-hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    orphans: 2;
    widows: 2;
}

Quote:

Originally Posted by Auramazda (Post 3342436)
1 - How set the dimension of the font in the style.css for h1, h2,...?

Like this:

Code:

h1 {
    font-size: 120%;
}

h2 {
    font-size: 100%;
}

Quote:

Originally Posted by Auramazda (Post 3342436)
2 - How can change font if I need?

Simply add a font-family declaration. E.g.
Code:

body {
    font-family: DejaVuLGCSerif;
}

Quote:

Originally Posted by Auramazda (Post 3342436)
Also a style.css example with more indication will be usefull.

Check out Jelllby's version of the prince plugin; it comes with a nice example CSS file.
Also have a look at a CSS tutorial.

Quote:

Originally Posted by Auramazda (Post 3342436)
The plug-in is great but the program princepdf is only 7/10

Actually, the plugin doesn't do anything special, it only calls the prince tool. I.e., all the work is done by prince.

roger64 09-10-2016 03:37 AM

Hi

Allowing two display sizes?

This PDF plugin is a great tool. I frequently use it to check quickly my EPUB display (after conversion). Also one can find sometimes complex EPUBs which may trigger display problems with Koreader. Then Prince PDF is always at hand to provide me quickly with a perfectly readable ebook.

It has an advantage over its Calibre plugin counterpart: we can launch it directly from Sigil without having to register the source EPUB in any database.

However, at that time, we can only launch the conversion process with only one fixed display size. The Calibre plugin allows us to choose between two display sizes.

Would it be possible to obtain the same functionality?

To comment further on it without knowing if it's feasable (forgive me), I can think of an opening screen offering to the user a choice between two display sizes (one being default) or of two distinct versions of the same plugin bearing different names and allowing each the launch of a different size.

Doitsu 09-10-2016 06:44 AM

Since the PrincePDF plugin isn't that popular, I'd rather not spend time adding new features.

Quote:

Originally Posted by roger64 (Post 3389045)
I can think of [...] two distinct versions of the same plugin bearing different names and allowing each the launch of a different size.

You can easily create multiple versions of the Plugin with different output sizes:

0. Close Sigil.
1. Locate the Sigil plugins folder.
2. Copy the PrincePDF folder and paste it to the same folder.
3. Rename PrincePDF (copy 1) to PrincePDF2.
4. Open plugin.xml and edit the following line:
<name>PrincePDF2</name>
and save plugin.xml.
5. Copy and rename the plugin preferences folder to PrincePDF2 and change the output size as needed.
6. Restart Sigil. You should see an additional PrincePDF2 output plugin option.

roger64 09-10-2016 07:06 AM

At least for me, your Prince PDF plugin is of nearly daily use. People don't know what they are missing. :)

Anyway, thank you for this explanation. It will be OK. I'll do it and report back.

Edit: yours is a five minutes solution. Working!

samirahmed007 05-03-2017 02:26 AM

Hi Doitsu,

PrincePDF Plugins dose not work and seen error bellow:

Status: failed

Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 134, in launch
target_script = __import__(script_module)
File "C:\Users\user\AppData\Local\sigil-ebook\sigil\plugins\PrincePDF\plugin.py", line 29, in <module>
prince_path = os.path.join(os.getenv('programfiles(x86)'), 'Prince', 'engine', 'bin', 'prince.exe')
File "ntpath.py", line 113, in join
File "genericpath.py", line 143, in _check_arg_types
TypeError: join() argument must be str or bytes, not 'NoneType'
Error: join() argument must be str or bytes, not 'NoneType'

-----------------------------------------------------------------
All System requirements install my system but PrincePDF Plugin not work Plugin Status:Failed

Please suggest how to solve this problem

Doitsu 05-03-2017 03:20 AM

Quote:

Originally Posted by samirahmed007 (Post 3515429)
PrincePDF Plugins dose not work properly and it seen error bellow

It looks like Python can't find the environment variable that points to 'C:\Program Files (x86)'. This might happen if you're using a very old Windows version or didn't install Prince in the default folder.

1. What's your Windows version?

2. Did you install the Prince executable in the default folder:

Code:

C:\Program Files (x86)\Prince
If not, what folder is the Prince executable located in?

samirahmed007 05-03-2017 04:46 AM

1 Attachment(s)
Quote:

Originally Posted by Doitsu (Post 3515435)
It looks like Python can't find the environment variable that points to 'C:\Program Files (x86)'. This might happen if you're using a very old Windows version or didn't install Prince in the default folder.

1. What's your Windows version?

2. Did you install the Prince executable in the default folder:

Code:

C:\Program Files (x86)\Prince
If not, what folder is the Prince executable located in?

-----------------------------------------------------
Hi Doitsu
1. My windows version is Windows 7 Professional
and
2. Prince executable folder:
C:\Program Files\Prince\prince-gui.exe
3. C:\Python34\python.exe
https://www.mobileread.com/forums/at...1&d=1493797552

Doitsu 05-03-2017 05:12 AM

Apparently my code doesn't work with your Windows 7 version and the external interpreter. Enabling the Use Bundled Python option might fix this problem, because the Python version bundled with Sigil is newer than your external interpreter.

If enabling the Use Bundled Python option doesn't fix the problem, you'll have to change the plugin source code:
  1. In Sigil, select Edit > Preferences > Open Preferences Location.
  2. Double-click the plugins folder and then double-click the PrincePDF folder.
  3. Open plugin.py with a text editor (e.g. NotePad oder Notepad++) and change the following line:

    from:

    Code:

        prince_path = os.path.join(os.getenv('programfiles(x86)'), 'Prince', 'engine', 'bin', 'prince.exe')
    to:

    Code:

        prince_path = os.path.join('C:\\Program Files', 'Prince', 'engine', 'bin', 'prince.exe')
    (Make sure to only change the text marked in Magenta.)

This should take care of the problem, if it doesn't you could always use Jellby's much more robust and sophisticated Calibre plugin.

Julie34 01-19-2018 09:20 AM

Thank you for this plugin Doitsu !
I'd like to do output Pdf for reading devices : smaller page size, larger font size (18 pt) special fonts. I found also the margins up and down page a bit too small.
Beginer's question: How do I find the place to do this kind of change? Could'nt find in plugin.py nor in the files of engine in Prince Programm...
Thanks a lot !

Doitsu 01-19-2018 11:28 AM

Quote:

Originally Posted by Julie34 (Post 3643615)
How do I find the place to do this kind of change?

The plugin the PrincePDF plugin folder contains a style.css stylesheet that you can customize according to your needs.
However, this stylesheet isn't used by default. In order to use it, you'll have to edit the PrincePDF.json file and change it from:

Code:

{
  "output_dir": "C:\\Users\\User\\Desktop"
}

to:

Code:

{
  "style": true,
  "output_dir": "C:\\Users\\User\\Desktop"
}

(Obviously, your user name will differ.)

To open the folder that contains PrincePDF.json:
  1. Press Windows+R (Run)
  2. Copy and paste %USERPROFILE%\AppData\Local\sigil-ebook\sigil\plugins_prefs\PrincePDF and press Enter.

To open the folder that contains style.css:
  1. Press Windows+R (Run)
  2. Copy and paste %USERPROFILE%\AppData\Local\sigil-ebook\sigil\plugins\PrincePDF and press Enter.

If you find this too complicated, you might want to use Jellby's Calibre Prince plugin, which comes with a nice GUI.

Doitsu 06-23-2018 06:48 AM

Based on a suggestion by roger64, I've added cpdf postprocessing support. (cpdf will reduce the file size of the .pdf file generated by Prince by up to 10%.)

If you want to use this feature, download the free cpdf binary and copy it to a system folder, for example, C:\Windows.

You'll also need to edit PrincePDF.json and add the following line:

Code:

  "cpdf": true,
(If this entry is the last entry in PrincePDF.json, remove the trailing comma.)

Djeturn 12-26-2018 12:00 PM

How easy (or difficult) would you say it might be to port this plugin so that it uses WeasyPrint? It's not as "complete" as Prince is, but from my brief usage it feels like it's good enough for ebooks, and is a free alternative.

Doitsu 12-26-2018 01:21 PM

Quote:

Originally Posted by Djeturn (Post 3791336)
How easy (or difficult) would you say it might be to port this plugin so that it uses WeasyPrint? It's not as "complete" as Prince is, but from my brief usage it feels like it's good enough for ebooks, and is a free alternative.

I've looked at the installation instructions and setting up WeasyPrint is not exactly easy, because of the many dependencies. OTOH, Prince requires only a single binary. This doesn't make WeasyPrint a good candidate for a plugin.

AutomaticSync 01-09-2019 01:48 PM

PRINCE PDF
 
Hello,

I'm reaching out about a similar issue with the Prince PDF plug-in. I am a MAC OS user.

I downloaded the Prince PDF plug-in and the prince installation file.

I am having trouble installing the Prince file. When I open it to install it simply expands to a folder, and within that folder there is an install file (install.sh). When I open this, it simply opens a text file with a lot of code. Do you know if this is supposed to happen?

You mention in the plug-in section for Prince PDF on this forum that we need to "Make sure to install prince in the default location."

Where is the default location? I'm wondering if this is related to my issue using prince pdf on Sigil.

After doing this I tried to use the Prince PDF plug-in in Sigil and it's giving me this response:

Status: failed

prince not found: /usr/local/bin/prince

I have prince in my files but it's not detecting it. Can you help me with this issue?

Doitsu 01-09-2019 04:23 PM

Quote:

Originally Posted by AutomaticSync (Post 3797018)
I downloaded the Prince PDF plug-in and the prince installation file.

I am having trouble installing the Prince file. When I open it to install it simply expands to a folder, and within that folder there is an install file (install.sh).

The Prince developers apparently didn't provide a proper installer. Users are expected to run a shell script, which will install prince in /usr/local/bin/prince.

For detailed instructions see the Prince PDF website.

Note that you'll need to replace to prince-9.0-macosx with prince-12.4-macosx. For example:

Code:

tar xzf prince-12.4-macosx.tar.gz
cd prince-12.4-macosx

If you have additional questions about other plugins, ask the plugin developers not the Sigil developers.

RbnJrg 04-01-2019 08:31 PM

Hi Doitsu;

Would it be possible to modify your "plugin.py" file so the path to Prince.exe is able to be different from the standar location?

TIA
Rubén

Doitsu 04-02-2019 03:27 AM

Quote:

Originally Posted by RbnJrg (Post 3826782)
Would it be possible to modify your "plugin.py" file so the path to Prince.exe is able to be different from the standar location?

You can specify a custom prince path by inserting the following entry at the beginning of PrincePDF.json:

Code:

  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
(Obviously, you'll need to change the path.)

Note also that you'll have to use double backslashes (\\) in Windows paths.

RbnJrg 04-02-2019 09:05 AM

Quote:

Originally Posted by Doitsu (Post 3826845)
You can specify a custom prince path by inserting the following entry at the beginning of PrincePDF.json:

Code:

  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
(Obviously, you'll need to change the path.)

Note also that you'll have to use double backslashes (\\) in Windows paths.

Thank you Doitsu but, where can I find PrincePDF.json in my system? I can't find it anywhere.

Doitsu 04-02-2019 09:33 AM

Quote:

Originally Posted by RbnJrg (Post 3826917)
Thank you Doitsu but, where can I find PrincePDF.json in my system? I can't find it anywhere.

In Sigil, select Edit > Preferences > Open Preferences Location then double-click the plugins_prefs folder and create a new PrincePDF folder. In the PrincePDF folder, create a PrincePDF.json text file with the following contents:

Code:

{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe"
}

If you add additional entries, you'll need to terminate the line with a comma:

For example:

Code:

{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
  "cpdf": true
}


RbnJrg 04-02-2019 10:26 AM

Quote:

Originally Posted by Doitsu (Post 3826926)
In Sigil, select Edit > Preferences > Open Preferences Location then double-click the plugins_prefs folder and create a new PrincePDF folder. In the PrincePDF folder, create a PrincePDF.json text file with the following contents:

Code:

{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe"
}

If you add additional entries, you'll need to terminate the line with a comma:

For example:

Code:

{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
  "cpdf": true
}


Many thanks!! :thumbsup: All worked perfectly.

roger64 12-20-2019 06:42 AM

Sigil 1.0.

I have to adapt the output to create my custom 9×12 size. It was easy three years ago, Now I find it difficult... Life goes like that.

Can we select a preference which tells the plugin to follow the Sigil structure every time? (furthermore, it seems we have no choice on this regard because it can only work this way)

Edit: Done. Would have been quicker if I did not throw away the epub.css file... Happily save exists.

Reader0531 02-11-2020 12:04 AM

permission denied error
 
Hello,

I am trying to run PrincePDF with Sigil.
When I run the plugin It seems to be OK but I get a "permission denied" error in the last leg of the process (see below)
I run Linux Mint.
Thanks

...
prince: used font: Times New Roman, Italic
prince: /home/xxx/Desktop/xxx.pdf: error: can't open output file: Permission denied
prince: Finished: failure

Return code: 1
Prince failed!

Doitsu 02-11-2020 03:25 AM

Quote:

Originally Posted by Reader0531 (Post 3952051)
I am trying to run PrincePDF with Sigil.
When I run the plugin It seems to be OK but I get a "permission denied" error in the last leg of the process (see below)

This might happen if your Desktop folder has name other than "Desktop" or if the output file is locked by another process. Try changing the following entry in PrincePDF.json:

Code:

  "output_dir": "/home/xxx/Desktop/"
so that it points to an existing folder.

Reader0531 02-11-2020 11:32 AM

Quote:

Originally Posted by Doitsu (Post 3952081)
This might happen if your Desktop folder has name other than "Desktop" or if the output file is locked by another process. Try changing the following entry in PrincePDF.json:

Code:

  "output_dir": "/home/xxx/Desktop/"
so that it points to an existing folder.

Thank you for the quick answer.
It fixed my problem instantly.
Thank you very much.
Great Sigil plugin :thanks:

Sonotoki 09-26-2020 12:42 PM

Error
 
Hello everyone!
I've installed all the prerequisites (Python 3x, PrincePdf, cpdf.exe to the Windows folder), but there's error when launching the plugin:
Code:

Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Sonotoki\AppData\Local\sigil-ebook\sigil\plugins\PrincePDF\plugin.py", line 115, in run
    if not os.path.isfile(prince_path):
  File "genericpath.py", line 30, in isfile
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Error: stat: path should be string, bytes, os.PathLike or integer, not NoneType


Sonotoki 09-26-2020 12:56 PM

Quote:

Originally Posted by Sonotoki (Post 4039395)
Hello everyone!
I've installed all the prerequisites (Python 3x, PrincePdf, cpdf.exe to the Windows folder), but there's error when launching the plugin:
Code:

Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Sonotoki\AppData\Local\sigil-ebook\sigil\plugins\PrincePDF\plugin.py", line 115, in run
    if not os.path.isfile(prince_path):
  File "genericpath.py", line 30, in isfile
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Error: stat: path should be string, bytes, os.PathLike or integer, not NoneType


Ahh! I'm really sorry, my bad! I thought that I don't need to set the path of PrincePDF, since it's installed properly, but when I wrote the path in PrincePDF.json, then everything worked out ))

codrut_popescu 02-04-2021 03:55 PM

epub to pdf converted book does not contain the cover
 
Hi,

I am new to this. I am trying to convert my ebooks (which I own and purchased) from epub to pdf. The ebooks are actually DRM free, they are ebooks from raywenderlich but I would like to read them on my pdf e-reader (Quaderno). For this I have installed Calibre and Sigil and the Prince PDF plugin and conversion went fine, actually better than I have expected, except the pdf does not have a cover.
Now, the original book when I open in iBooks it does have a cover. But when I open it in ebook-viewer it does not have a cover. So, what is wrong here?

Thanks

lxs602 07-06-2021 06:43 PM

PrincePDF and styles.css on Linux
 
Hi,

I am trying to use the PrincePDF plugin on Sigil 1.6.0 on Linux.

I added
Code:

"style": true,
to /home/user/.local/share/sigil-book/sigil/plugins_prefs/PrincePDF/PrincePDF.json to enable a custom stylesheet, style.css.

I put a custom style.css in the following directories, but the plugin does not find it (The epub file is in /home/user):

Quote:

/home/user/.local/share/sigil-book/sigil/plugins_prefs/PrincePDF/PrincePDF.json
/home/user/.local/share/sigil-book/sigil/plugins/PrincePDF
/home/user/.local/share/sigil-book/sigil/
/home/user
I get the error:
Code:

prince: Applying style sheets...
prince: loading style sheet: ../style.css
prince: ../style.css: warning: can't open input file: No such file or directory


The below is just a guess as I cannot code (it did not work), but I also tried temporarily changing the line in plugin.py , from:
Code:

stylesheet_path = os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'style.css')
to:
Code:

stylesheet_path = os.path.join('/home/user', 'style.css')
Where should I put the styles.css file?

Thanks,

L

DiapDealer 07-06-2021 07:44 PM

Quote:

Originally Posted by lxs602 (Post 4136659)
Hi,

I am trying to use the PrincePDF plugin on Sigil 1.6.0 on Linux.

I added
Code:

"style": true,
to /home/user/.local/share/sigil-book/sigil/plugins_prefs/PrincePDF/PrincePDF.json to enable a custom stylesheet, style.css.

I put a custom style.css in the following directories, but the plugin does not find it (The epub file is in /home/user):



I get the error:
Code:

prince: Applying style sheets...
prince: loading style sheet: ../style.css
prince: ../style.css: warning: can't open input file: No such file or directory


The below is just a guess as I cannot code (it did not work), but I also tried temporarily changing the line in plugin.py , from:
Code:

stylesheet_path = os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'style.css')
to:
Code:

stylesheet_path = os.path.join('/home/user', 'style.css')
Where should I put the styles.css file?

Thanks,

L

The 'style.css' file goes in the plugin folder. The second one in the list of folders you tried.

Code:

/home/user/.local/share/sigil-book/sigil/plugins/PrincePDF
Obviously "user" needs to be changed to your actual user name. It works as described for me. But I'm worried about your output:

Code:

prince: loading style sheet: ../style.css
Is that the actual output you're seeing? Because when I run the plugin, it shows the entire path to the style.css file:

Code:

prince: loading style sheet: /home/<USER>/.local/share/sigil-ebook/sigil/plugins/PrincePDF/style.css

lxs602 07-07-2021 04:26 PM

Hi,

That was the actual output: https://imgur.com/a/BxMx613

https://imgur.com/a/BxMx613

I just ran Sigil from terminal, and I noticed:
Quote:

Debug: URLSchemeHandler failed request for: QUrl("sigil:///tmp/Sigil-WLAXFL/OEBPS/style.css")
I copied style.css to the /tmp/Sigil-WLAXFL/OEBPS/style.css and it worked.

Also, I can now see that I was incorrectly using "styles.css", rather than style.css.

DiapDealer 07-07-2021 05:37 PM

You don't want to be copying stuff to Sigil's scratch (temp) directory. Bad things can happen. But then the plugin's code doesn't indicate it would be looking for the custom style.css file in that location in the first place.

Did you make sure to run Sigil's Tools > Restructure Epub to Sigil Norm before running the PrincePDF plugin? It sounds to me that there are some pathing issues you're running into.

As per the plugin's notes from the first page:
Quote:

This plugin does not support non-standard epubs. Select Tools > Restructure Epub to Sigil Norm before running this plugin with Sigil 1.0 and higher.


All times are GMT -4. The time now is 08:28 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.