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 04-03-2021, 11:35 AM   #1
dAb74
Junior Member
dAb74 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: none
Right margin issue

Hi, I'm trying to convert a book from EPUB to PDF and I can't for the life of me figure out how to reduce the huge right margin in the converted file. I'm not sure if it's something about the css code, as the original epub doesn't seem to be rendered with that margin in an ordinary epub reader [see attachments]. I tried to set the margin in @page, in the "Page margin" section of the conversion settings to no avail. I'm new to Calibre so I have no idea where I should look. I've been banging my head on the wall for hours.. help?
Attached Thumbnails
Click image for larger version

Name:	epub_firefox.png
Views:	135
Size:	47.4 KB
ID:	186352   Click image for larger version

Name:	pdf_acrobat.png
Views:	148
Size:	95.2 KB
ID:	186353  
dAb74 is offline   Reply With Quote
Old 04-03-2021, 02:49 PM   #2
dAb74
Junior Member
dAb74 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: none
Found it.. it was a max-width parameter set too low, took me a long while to find it buried in 9000+ lines of CSS code.
dAb74 is offline   Reply With Quote
Advert
Old 04-03-2021, 02:59 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What rubbish is this eBook that needs 9000+ lines of CSS code?
JSWolf is offline   Reply With Quote
Old 04-03-2021, 03:05 PM   #4
dAb74
Junior Member
dAb74 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: none
Apparently most recent books from Cisco Press come with this template.
dAb74 is offline   Reply With Quote
Old 04-03-2021, 03:18 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dAb74 View Post
Apparently most recent books from Cisco Press come with this template.
Load the eBook into the Calibre editor and remove unused CSS from the Tools menu. That will dump all the excess garbage.
JSWolf is offline   Reply With Quote
Advert
Old 04-03-2021, 03:30 PM   #6
dAb74
Junior Member
dAb74 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: none
Oh. Now that's a useful tip. It trimmed down the CSS file to ~700 lines. I'll treasure the hint for future needs, ty.
dAb74 is offline   Reply With Quote
Old 04-03-2021, 03:33 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dAb74 View Post
Oh. Now that's a useful tip. It trimmed down the CSS file to ~700 lines. I'll treasure the hint for future needs, ty.
I do it all the time as I don't like CSS with all the extra crud. It also makes it easier to edit as all that's left is what's being used.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Left and Right margin issue Waylander Conversion 2 11-21-2018 06:56 PM
converting to mobi margin issue rosshalde Conversion 2 11-21-2014 10:12 AM
PDF conversion problem - Right Margin Issue wolfroolz Conversion 1 09-11-2012 11:20 PM
Margin Cut issue SeaBookGuy Sony Reader 20 03-05-2011 01:17 AM
little issue converting from odt to epub (top and bottom margin) superanima Calibre 1 02-15-2010 04:15 PM


All times are GMT -4. The time now is 05:53 AM.


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