Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2023, 11:58 AM   #1
AndyG
Member
AndyG began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Nov 2007
Device: 505, Kindle DX
ePub -> PDF Problem - Losing Hyperlinks

Hi,

When I add the following custom CSS styling (to the "Look and Feel" section of the conversion dialog):

Code:
body {
  column-count: 2;
  column-gap: 1cm;
}
... the hyperlinks in the resulting PDF are stripped. Is this a bug possibly, or do I need to add something to my CSS code to preserve them?

Thanks in advance,
Andy
AndyG is offline   Reply With Quote
Old 11-06-2023, 09:10 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: 43,963
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If its a bug its a bug in chromium which is what calibre uses for conversion to PDF so there's not much chance of it being fixed.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-07-2023, 05:00 AM   #3
AndyG
Member
AndyG began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Nov 2007
Device: 505, Kindle DX
Understood, thank you for the reply.
AndyG is offline   Reply With Quote
Old 11-07-2023, 08:22 AM   #4
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,039
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by AndyG View Post
Hi,

When I add the following custom CSS styling (to the "Look and Feel" section of the conversion dialog):

Code:
body {
  column-count: 2;
  column-gap: 1cm;
}
... the hyperlinks in the resulting PDF are stripped. Is this a bug possibly, or do I need to add something to my CSS code to preserve them?

Thanks in advance,
Andy
For what it's worth, I've tested that neat CSS on two books with hyperlinks, converting fom EPUB to PDF, and the links were preserved... (running Calibre version 6.99.2)

By the way, it would be so nice if we could store those custom CSS in different profiles, similarly to color schemes
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2023-11-07, 10_15_53.png
Views:	33
Size:	23.0 KB
ID:	204622  
Comfy.n is offline   Reply With Quote
Old 11-10-2023, 02:32 AM   #5
AndyG
Member
AndyG began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Nov 2007
Device: 505, Kindle DX
Thanks, I’ve since found that it is intermittent, although it very often (four out of five say) fails with two columns, and has never yet failed with one. Very odd. I’ve also found, more seriously, occasional missing pages (roughly a page missing at the end of a chapter, every 20 or 30 pages) when the two column style is applied, which makes it useless of course.
AndyG is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB to PDF: hyperlinks that span lines make all of both lines clickable metallserge Conversion 4 09-23-2021 06:39 AM
How to Convert EPUB to PDF using Calibre without losing its format yusheda Conversion 10 12-02-2017 10:02 PM
losing internal hyperlinks. Need Help! JLogue Sigil 2 08-24-2012 05:57 PM
Missing TOC, top/bottom margins and hyperlinks in ePub -> PDF conversion amoroso Conversion 2 04-26-2011 10:48 AM
PDF Reader for internal PDF hyperlinks? andrewscheinman iRex 1 12-25-2008 08:17 PM


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


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