![]() |
#1 |
Member
![]() Posts: 16
Karma: 10
Join Date: Jan 2014
Device: iPad Pro, Onyx Note 3, Kindle Paperwhite, MacBook Pro, Pixel 7 Pro
|
Center-aligned figures in EPUB to PDF conversion
Does anyone knows a simple easy way to align figures in center of the pages in EPUB to PDF conversion?
By default mine are left-aligned in the PDF even if they are centered in the EPUB... |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,637
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Export to docx. Edit / style in LO Writer or MS Word. Export to PDF.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 312
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
center an image
I work exclusively in calibre's editor to make the epub for upload to Amazon. I convert the EPUB via calibre to PDF for upload to Amazon for printed books. There are several ways in CSS to center an image. Here are six print-screens showing how to alter by adding style="display: flex; float: none; margin: auto;" to center an image. There are umpteen other ways of doing this. Best regards, Pop
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 16
Karma: 10
Join Date: Jan 2014
Device: iPad Pro, Onyx Note 3, Kindle Paperwhite, MacBook Pro, Pixel 7 Pro
|
![]()
Unfortunately the problem is more subtle than that. The images are correctly centered in the EPUB and the DOCX translation, but not in the PDF. The CSS is correctly configured to center the images. Here is an example:
Here is how the images are included in the EPUB: Code:
<div class="illustype_image_text"><div class="image_text" style="width:65%"><img src="images/e9780486153353_i0004.jpg" alt="e9780486153353_i0004.jpg"/></div> Code:
.illustype_image, .illustype_image_net, .illustype_image_tab, .illustype_image_text, .illustype_image_text_net, .illustype_image_math, .illustype_image_deco, .illustype_image_deco_net, .image_orig_tab, .illustype_image_externe, .image_sep_para { text-align: center; margin-top: 1.5em; margin-bottom: 1.5em; page-break-inside: avoid; } |
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,637
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
If you have docx, and want PDF, don't bother with epub, Export direct from LO Writer.
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
convert epub to pdf, figures=, layout |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Highlighting not aligned with text after pdf conversion | degroove | Calibre | 1 | 02-02-2025 09:59 AM |
How to force old-style figures ("text figures") in conversion to kepub? | Liudprand | Conversion | 10 | 08-22-2022 10:29 AM |
PDF to PDF conversion causes all the text to be aligned to the left | Swifty4635 | Conversion | 1 | 01-16-2022 10:17 PM |
Left aligned conversion | shamus888 | Conversion | 1 | 12-25-2012 03:53 PM |
Text becomes center-aligned when converting | Alfy | Calibre | 12 | 01-19-2009 12:41 AM |