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 09-15-2016, 02:18 PM   #1
MarcMelancon
Junior Member
MarcMelancon began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2016
Device: none
epub -> pdf element push over

Good day,

we do epub book injection that involve conversion to pdf using ebook_convert utility.

Here is an example of a document that has fix width defined in stylesheet.css (at line 572). which cause issues during conversion since padding and margin pushes element over. (see truncated text).

are there options in ebook_convert to overcome that behavior? I understand we could modify the content but if there are other ways to do so it would be simpler.

I include the epub and the resulting pdf.

thanks,
MarcM
Attached Files
File Type: epub sample.epub (2.11 MB, 80 views)
File Type: pdf Right Here, Right Now_ Explorin - Kiaras Gharabaghi.pdf (648.3 KB, 2188 views)
MarcMelancon is offline   Reply With Quote
Old 09-15-2016, 09:46 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,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You really should not be using absolute widths in reflowable documents. In any case if you want to override CSS in the document during conversion, use the --extra-css conversion option. In this case it would be something like

--extra-css '.chapter { width: auto !important}'
kovidgoyal is offline   Reply With Quote
Advert
Old 09-16-2016, 09:34 AM   #3
MarcMelancon
Junior Member
MarcMelancon began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2016
Device: none
We have non control over what the publisher gives us.... thanks for the override css hint...
MarcM
MarcMelancon is offline   Reply With Quote
Reply

Tags
conversion to pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ancestor element text extraction (chapter titles) in PDF header templates NullNix Conversion 9 08-13-2016 07:46 AM
epub 3.0 validation: The a element must no appear inside a elements JoseWriter ePub 9 01-10-2015 03:54 AM
Ibooks epub 3 error : exactly one 'toc' nav element must be present Firebrand007 ePub 6 01-02-2015 10:00 PM
EPUB -> MOBI: Can't style HR element? modified Conversion 4 03-21-2013 08:36 AM
Illustrated ebooks with epub: using the svg image element dpapathanasiou ePub 0 06-15-2011 04:17 PM


All times are GMT -4. The time now is 11:41 AM.


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