07-06-2021, 05:43 PM | #31 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2021
Device: none
|
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, 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:
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') Code:
stylesheet_path = os.path.join('/home/user', 'style.css') Thanks, L Last edited by lxs602; 07-06-2021 at 05:47 PM. |
|
07-06-2021, 06:44 PM | #32 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
/home/user/.local/share/sigil-book/sigil/plugins/PrincePDF Code:
prince: loading style sheet: ../style.css Code:
prince: loading style sheet: /home/<USER>/.local/share/sigil-ebook/sigil/plugins/PrincePDF/style.css |
|
Advert | |
|
07-07-2021, 03:26 PM | #33 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2021
Device: none
|
Hi,
That was the actual output: https://imgur.com/a/BxMx613 I just ran Sigil from terminal, and I noticed: Quote:
Also, I can now see that I was incorrectly using "styles.css", rather than style.css. |
|
07-07-2021, 04:37 PM | #34 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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:
|
|
05-03-2023, 03:53 PM | #35 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2023
Device: none
|
Hi, this plugin is very awesome.
But, can I use javascript in this? I try: { "javascript": true, "style": true, ... } But it not working. Thank you very much. |
Advert | |
|
05-03-2023, 05:40 PM | #36 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF Export fails | KRead123 | Calibre | 2 | 05-19-2016 05:56 AM |
pdf metadata export | devils_add | Library Management | 4 | 05-09-2014 02:46 AM |
Request Batch export annotated pdf | gotmilt | enTourage eDGe | 2 | 11-18-2011 04:57 PM |
pdf import/export and notes | nettomb | Sony Reader | 0 | 04-03-2011 08:42 PM |
PRS-650 Export pdf with highlights? | zoobiliezoo | Sony Reader | 0 | 10-28-2010 01:11 AM |