Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2023, 05:08 PM   #1
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
ePub->pdf conversion doesn't allow to add watermark with third-party pdf editor

Seven years back in April 2016 this thread discussed the problem of adding background color to pdf produced by epub conversion. Back then I advised to try free PDFill tools to add jpeg or bmp texture as all-page watermark to obtain desired background color. My guess is back then in 2016 most people used Windows 8.1 and PDFill tools worked perfectly well for Calibre PDF output.

Today I noticed that under Windows 10 even latest PDFill Editor fails to add watermark as proper background.

OK, I also had latest edition of Adobe Acrobat and decided to find out what was going on. First I verified that both Adobe Acrobat and PDFill Editor were perfectly able to add all-page jpeg texture as watermark to my math pdf books.
However, Calibre generated PDF file opposed to Acrobat/PDFill Editor attempts to add usable all-page background watermark.

See attached screen captures:
First one demonstrates watermark behind page created in PDFill Editor in year 2023 (Adobe Acrobat watermark looks similar).
I intentionally stretched watermark to cover both text and page margins.
Note that watermark is visible ONLY across all four margins but is fully hidden away across the page text.
Second capture demonstrates successful all-page watermark added to Calibre created pdf in year 2015.

Evidently the text area above the 2023 watermark is 100% opaque and hides almost whole watermark.
Also note that Adobe Acrobat simply refuses to change background color for Calibre generated PDF.

My question to Kovid: Is there any hope to return to Calibre generated PDF
its lost since Windows 8 ability to accept proper watermark/background color from third-party PDF editors under Windows 10/11?

P.S. If needed, I have pdf file of Lewis Carrol, Through the Looking Glass created by ePub->pdf in year 2015 – it still allows today to add good all-page watermark under Windows 10
Attached Thumbnails
Click image for larger version

Name:	Text hides away background watermark.jpg
Views:	179
Size:	433.8 KB
ID:	201040   Click image for larger version

Name:	Watermark PDFill year 2015.jpg
Views:	221
Size:	367.3 KB
ID:	201041  

Last edited by EbokJunkie; 04-14-2023 at 05:15 PM.
EbokJunkie is offline   Reply With Quote
Old 04-14-2023, 10:54 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there isnt. Originally calibre used to generate the PDF itself by implementing a drawing backed for Qt webkit. Qt Webkit was discontinued. Nowadays calibre uses Qt Webengine to draw the PDF, your issues will come from that. And no there is no hope of that changing.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-15-2023, 12:18 AM   #3
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
Thank you, now I understand what happened, Qt Webkit was deprecated somewhere about 2016. Kovid, what Calibre version was the latest using Qt Webkit for PDF? Maybe it will run on Windows 10?
EbokJunkie is offline   Reply With Quote
Old 04-15-2023, 01:45 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
3.48 IIRC
kovidgoyal is offline   Reply With Quote
Old 04-15-2023, 03:14 AM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by EbokJunkie View Post
Kovid, what Calibre version was the latest using Qt Webkit for PDF? Maybe it will run on Windows 10?
Quote:
Originally Posted by kovidgoyal View Post
3.48 IIRC
Can't speak to epub->pdf conversion specifically, but 3.48 runs on Windows 10 just fine for me, including the viewer.

BR
BetterRed is offline   Reply With Quote
Advert
Old 04-15-2023, 03:53 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
@EbokJunkie if you don't mind using a command line tool, you could add watermarks with cpdf.

You only need a .pdf file of the watermark image that you want to use. The command is:

Code:
cpdf -stamp-under watermark.pdf -scale-stamp-to-fit in.pdf -o out.pdf
Doitsu is offline   Reply With Quote
Old 04-16-2023, 05:37 PM   #7
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
Thanks Kovid, BetterRed,

Really, 3.48 does everything for ePub->pdf conversion on Windows 10 and output PDF is perfectly modifiable with PDFill Editor. BTW, conversion is faster with QtWebKit.

Last edited by EbokJunkie; 04-16-2023 at 05:41 PM.
EbokJunkie is offline   Reply With Quote
Old 04-16-2023, 05:40 PM   #8
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
Quote:
Originally Posted by Doitsu View Post
@EbokJunkie if you don't mind using a command line tool, you could add watermarks with cpdf.

You only need a .pdf file of the watermark image that you want to use. The command is:

Code:
cpdf -stamp-under watermark.pdf -scale-stamp-to-fit in.pdf -o out.pdf
Thank you, will try cpdf for sure.
EbokJunkie is offline   Reply With Quote
Old 04-16-2023, 08:38 PM   #9
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
One observation regarding adding watermarks:
ePub->PDF book has 568 pages and size ~3 MB.
jpeg file containing watermark is~ 19KB.
Watermarked book sizes with all-page watermark added:
after Adobe Acrobat: 13 MB
after PDFill Pdf Editor: 3.1 MB
Question: What PDFill Pdf Editor knows about watermarking that Adobe doesn't know?
EbokJunkie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When i add a pdf in caliber and open it with E-book viewer the pdf turns into a epub. sourov Library Management 1 08-23-2021 05:05 AM
ebook-convert changes width of pdf pdf-odd-even-offset and pdf-add-toc used both Lafisrap Conversion 4 09-04-2020 06:43 AM
epub 2 PDF conversion with OCR in PDF possible? hobi2000 Conversion 2 03-25-2019 03:20 AM
PDF Conversion doesn't see hidden text Bearbait Conversion 3 02-18-2011 02:56 PM


All times are GMT -4. The time now is 09:34 AM.


MobileRead.com is a privately owned, operated and funded community.