![]() |
#1 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Obtaining transparent PDF backgrounds
Hi all!
By running Prince PDF plugin, today I was able to get a transparent background on a PDF converted doc, after adding this line in CSS: PHP Code:
However, in Calibre versions post-v3.48, I can't seem to find a workaround to get non-white background below text, upon converting from EPUB, MOBI etc., unless I edit the docs/ebooks internal CSS, to set a custom background color - inserting just that line I mentioned doesn't seem to work. Is there perhaps some Extra CSS styling I can enter in the Look and Feel section of Calibre conversion, to get a fully transparent background? So far, i've tried: PHP Code:
Reason I prefer transparent PDF in converted documents is that it's possible to add a custom background color using tools like PDF Xchange Editor, in order to reduce eye strain. In the attachments you may see the difference between a Prince converted doc - with the "body bg transparent" CSS line addition, and the other one converted using Calibre native conversion, which has the advantage of running batch jobs... Last edited by Comfy.n; 07-03-2023 at 09:14 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,335
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC There is a prince pdf calibre plugin with which you can run batch conversion in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Quote:
Anyway, Prince is awesome, but it's easier to adjust margins, paper size, font-sizes etc. in Calibre Conversion UI |
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#5 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
|
I did that, it returns a message "Many books selected", "Select a single book". Additionally, I found that it doesn't like titles with slashes and maybe other special characters... Anyway, I was hoping someone would tell me something like "Hey, just add epub@page-body-* {background:transparent !god-mode-override;} to Extra CSS and you'll get it"
edit: I think what Prince PI actually doesn't like has something to do with long titles Last edited by Comfy.n; 07-04-2023 at 10:16 AM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks backgrounds | minnieminx | Apple Devices | 0 | 02-12-2015 10:48 AM |
Transparent images | Iznogood | ePub | 3 | 12-31-2012 08:38 PM |
Transparent Lovers | Scott Nicholson | Self-Promotions by Authors and Publishers | 0 | 08-08-2011 06:14 PM |
Backgrounds / resolution of NC? | coolbreeze | Nook Color & Nook Tablet | 3 | 11-30-2010 11:07 PM |