I'm new to calibre and conversion, I'm trying to gather some pages/information from website and put them together into an "epub" ebook. I've tried to use the default setting in calibre to convert, unfortunately it didn't work. Tried to search on internet tutorials/youtube explaining it, and found very few tutorials available for this topic. Can someone please give me an hint where to start to learn this topic?
The trouble I'm having in converting is this, original text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Mauris gravida urna ac vulputate efficitur. Duis ultrices
nisl id tempor ultricies. Ut feugiat metus a ornare aliquam.
Integer vel accumsan elit, in facilisis libero.
Vestibulum mollis justo ut dictum tempor. Maecenas euismod
dui sed feugiat auctor. Aenean at accumsan mauris.
after conversion:
<p class="calibre2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<p class="calibre2">Mauris gravida urna ac vulputate efficitur. Duis ultrices </p>
<p class="calibre2">nisl id tempor ultricies. Ut feugiat metus a ornare aliquam. </p>
<p class="calibre2">Integer vel accumsan elit, in facilisis libero.</p>
<p class="calibre2">Vestibulum mollis justo ut dictum tempor. Maecenas euismod </p>
<p class="calibre2">dui sed feugiat auctor. Aenean at accumsan mauris. </p>
It seems for some reason, the webpage generated linebreak after each line instead of end of paragraph. It seems easy to solve but I have no clue how.
I've converted a pdf file to epub in Calibre. Everything goes fine, except for the fact that the superscript format of the note numbers is completely lost in the conversion, which makes it next to impossible to find them back in the text of the epub. Is there anything I can do to get Calibre to retain the superscript format of the note numbers?
This is goofy. I'll appreciate any insight into it.
I'm in the final stages of publishing a book on Amazon and my Sigil-made Epub3 file passes the Epub validator with no errors, uploads to Kindle, converts perfectly and displays on all the devices and viewers I have available to me. Now I need to generate the PDF for the print version. I suck it into Calibre, set what seem to be reasonable parameters, convert it to PDF. I look at it in Acrobat Reader and it has frequent rendering errors -- which appear to be characterers overlaid on one another. Large chunks of it are fine, but it looks like someone just scattered random wrong characters all over. This Epub3 book contains 20 XHTML files and is about 140K words. I've spent all day tracking this down, and whittled it down to a test case consisting of only two short XHTML files (my Copyright and my Preface) that exhibits the same problem.
The first file is rendered perfectly in PDF. The second file is mostly rendered fine, but the first header (e.g., <h1> or <h2>) is render incorrectly, and then seemingly random words are rendered incorrectly. It doesn't matter which order the files are in, it's always the second (and subsequent) file in the order that exhibits the problem. For example, in the "<h1>Preface</h1>" tag, what appears is an upper case P followed by a space, then an "e", an "f" overlaid with an "a", and the final "e". The first letter of the following sentence begins with "This", but has the "T" and "h" overlaid. The rest of that paragraph is fine, but half-way through the following paragraph there is another overlay of "t" and "h" in what should be "the".
Multiple header tags in the first file are rendered without any problems.
I have not yet tried converting this to Epub2 to see if that would make a difference. I'm just trying to convert my book to PDF so I can submit that format to Amazon for the print version.
Hi, I have upgraded from calibre version 4.23-32 bits to calibre version 5.6-64 bits, now I am having problem with converting from EPUB to pdf.
With version 5.6 the conversion would look like:
Copyright ???????? Harvard Business School Publishing Corporation
All rights reserved
Printed in the United States of America
???? ?? ?? ?? ?? ?? ?? ?? ?? ??
The characters with "?" are actually being displayed on the pdf document but with a weird font. I went to the look&fill menu and restored defaults but the problem is still there. If I use version 4.23 it works as it should.
Is this a bug in the program or some settings that I should select? I finally ended up installing both versions on my laptop (windows 10) with the same result as above.
This has me puzzled. It appears as though the conversion to PDF is oriented primarily towards digital display rather than print. Not surprising, I suppose. But I (and I'm sure others) need to generate what used to be called "camera-ready copy" for a print version.
In Preferences, I can specify a "Base font size" of (say) 12 pt. But in the PDF output options, I can specify the font sizes ONLY in pixels -- even though all the other parameters are specified in points. And it appears that THIS default font size specification overrides what's specified in Preferences. So the only way I've been able to get PDF output in 12 point font is to specify the "corresponding" pixel size of 16 px.
Am I missing something here? Why not allow PDF output font size to be specified in points? And is "faking it" in pixels the only way to accomplish this?
I have the 1.17 version of Kindle, and up to now no problem converting to epubs, but I've tried twice to convert this book and I have this error message:
Spoiler:
calibre, version 4.23.0 (win32, embedded-python: True)
Erreur lors de la conversion: Échoué: Conversion du livre 1 sur 1 (The Boys and Their Baby)
Conversion du livre 1 sur 1 (The Boys and Their Baby)
C:\Programmes Portables\Calibre Port\Calibre\\app\pylib.zip\dateutil\parser\_parse r.py:1177: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Conversion options changed from defaults:
epub_version: u'3'
insert_blank_line: True
output_profile: u'tablet'
change_justification: u'justify'
verbose: 2
filter_css: u',margin,color,padding-right,margin-left,background-color,background,padding-bottom,padding-top,margin-right,margin-bottom,font-family,float,margin-top,padding-left,padding'
base_font_size: 12.0
read_metadata_from_opf: u'C:\\Users\\isabe\\AppData\\Local\\Temp\\calibre_ 0fv_r3\\glbmel.opf'
remove_paragraph_spacing: True
extra_css: u'body {orphans: 1;}\ndiv, p, blockquote {line-height: 1.1},\npage { margin-bottom: 5pt; margin-top: 5pt}'
cover: u'C:\\Users\\isabe\\AppData\\Local\\Temp\\calibre_ 0fv_r3\\bbjpaz.jpeg'
html_unwrap_factor: 0.3
remove_paragraph_spacing_indent_size: 0.0
Resolved conversion options
calibre version: 4.23.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 12.0,
'book_producer': None,
'change_justification': u'justify',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\isabe\\AppData\\Local\\Temp\\calibre_ 0fv_r3\\bbjpaz.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': u'3',
'expand_css': False,
'extra_css': u'body {orphans: 1;}\ndiv, p, blockquote {line-height: 1.1},\npage { margin-bottom: 5pt; margin-top: 5pt}',
'extract_to': None,
'filter_css': u',margin,color,padding-right,margin-left,background-color,background,padding-bottom,padding-top,margin-right,margin-bottom,font-family,float,margin-top,padding-left,padding',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.3,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000001D594D6C948>,
'insert_blank_line': True,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': True,
'kepub_hyphenate': True,
'kepub_replace_lang': True,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x000001D594E4B408>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\isabe\\AppData\\Local\\Temp\\calibre_ 0fv_r3\\glbmel.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 0.0,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\isabe\AppData\Local\Temp\calibre_0fv_r3\a oyux_.azw3
Found KF8 MOBI of type u'standalone'
Extracting text...
Parsing all content...
Parsing text/part0011.html ...
Parsing text/part0010.html ...
Parsing text/part0020.html ...
Parsing text/part0004.html ...
Parsing text/part0019.html ...
Parsing text/part0003.html ...
Parsing text/part0002.html ...
Parsing text/part0018.html ...
Parsing text/part0001.html ...
Parsing styles/0001.css ...
Parsing text/part0016.html ...
Parsing text/part0000.html ...
Parsing text/part0015.html ...
Parsing text/part0014.html ...
Parsing text/part0013.html ...
Parsing text/part0008.html ...
Parsing text/part0017.html ...
Parsing text/part0005.html ...
Parsing text/part0009.html ...
Parsing text/part0007.html ...
Parsing text/part0012.html ...
Parsing text/part0006.html ...
Referenced file u'styles/XXXXXXXXXXXXXXXX' not found
Referenced file u'text/page-template.xpgt' not found
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Contents
Detected chapter: CHAPTER ONEWELCOME TOSAN FRANCISCO
Detected chapter: CHAPTER TWOTHE PACIFIC
Detected chapter: CHAPTER THREEANYONECAN WHISTLE
Detected chapter: CHAPTER FOUROLD WORLD,NEW WORLD
Detected chapter: CHAPTER FIVEPRIVATEEDUCATION
Detected chapter: CHAPTER SIXGOLDEN GATE
Detected chapter: CHAPTER SEVENTHE WOMENAND THE BOYS
Detected chapter: CHAPTER EIGHTTABOO
Detected chapter: CHAPTER NINEIVE GOT ACRUSH ON YOU
Detected chapter: CHAPTER TENLEPROSY
Detected chapter: CHAPTER ELEVENHAPPY BIRTHDAY,DEAR CHRISTOPHER
Detected chapter: CHAPTER TWELVEALL ALONE
Detected chapter: CHAPTER THIRTEENADAMS PENIS
Detected chapter: CHAPTER FOURTEENTHE WOUNDEDHERO
Detected chapter: CHAPTER FIFTEENON THETHRESHOLD
Detected chapter: Permissions Acknowledgments
Flattening CSS and remapping font sizes...
Filtering CSS properties: , padding-bottom, padding-top, float, margin-bottom, background, font-family, color, background-color, padding-left, margin, margin-left, padding-right, padding, margin-right, margin-top
Source base font size is 12.00000pt
Removing fake margins...
Found 1 items of level: div_2
Found 28 items of level: div_1
Found 1046 items of level: p_1
Found 41 items of level: p_2
Found 9 items of level: p_3
Ignoring level p_3
div_2 left margin stats: Counter({u'': 1})
div_2 right margin stats: Counter({u'': 1})
div_1 left margin stats: Counter({u'': 4})
div_1 right margin stats: Counter({u'': 4})
p_1 left margin stats: Counter({u'': 1046})
p_1 right margin stats: Counter({u'': 1046})
p_2 left margin stats: Counter({u'': 41})
p_2 right margin stats: Counter({u'': 41})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00010.jpeg' from manifest
Trimming u'images/00001.jpeg' from manifest
Creating Fichier de sortie KePub...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=c07
Looking for large trees in text/part0011.html...
No large trees found
Splitting on page-break at id=c06
Looking for large trees in text/part0010.html...
No large trees found
Splitting on page-break at id=bm1
Looking for large trees in text/part0020.html...
No large trees found
Splitting on page-break at id=calibre_pb_0
Looking for large trees in text/part0004.html...
No large trees found
Splitting on page-break at id=c15
Looking for large trees in text/part0019.html...
No large trees found
Looking for large trees in text/part0003.html...
No large trees found
Looking for large trees in text/part0002.html...
No large trees found
Splitting on page-break at id=c14
Looking for large trees in text/part0018.html...
No large trees found
Looking for large trees in text/part0001.html...
No large trees found
Splitting on page-break at id=c12
Looking for large trees in text/part0016.html...
No large trees found
Looking for large trees in text/part0000.html...
No large trees found
Splitting on page-break at id=c11
Looking for large trees in text/part0015.html...
No large trees found
Splitting on page-break at id=c10
Looking for large trees in text/part0014.html...
No large trees found
Splitting on page-break at id=c09
Looking for large trees in text/part0013.html...
No large trees found
Splitting on page-break at id=c04
Looking for large trees in text/part0008.html...
No large trees found
Splitting on page-break at id=c13
Looking for large trees in text/part0017.html...
No large trees found
Splitting on page-break at id=c01
Looking for large trees in text/part0005.html...
No large trees found
Splitting on page-break at id=c05
Looking for large trees in text/part0009.html...
No large trees found
Splitting on page-break at id=c03
Looking for large trees in text/part0007.html...
No large trees found
Splitting on page-break at id=c08
Looking for large trees in text/part0012.html...
No large trees found
Splitting on page-break at id=c02
Looking for large trees in text/part0006.html...
No large trees found
Upgrading to EPUB 3...
Encrypting font: fonts/00002.ttf
Encrypting font: fonts/00003.ttf
Encrypting font: fonts/00004.ttf
Python function terminated unexpectedly
Failed to find obfuscation key (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 88, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 209, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 43, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1275, in run
File "calibre_plugins.koboconversion.conversion.kepub_o utput", line 60, in convert
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 1222, in __init__
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 1339, in process_encryption
calibre.ebooks.oeb.polish.container.ObfuscationKey Missing: Failed to find obfuscation key
FYI I have in fact a modified version of Calibre portable to turn it into a 64b version, since the 32b didn't work for converting some of my heavier books (size and number of pages and files) - see https://www.mobileread.com/forums/sh...51&postcount=9.
Can someone explain what is wrong and what I can do? If not I'll return it and buy from another seller
I THINK I can see a way around this that is mostly outside Calibre, but given that I see some pretty slick stuff in Calibre conversion documents, I wonder if I'm just missing something. Surely people handle this situation all the time. If it's already documented or discussed somewhere, just point me at it.
Here's the problem: Page numbers for "front matter" (title page, copyright, preface, etc.) should be lower case Roman numerals (i, ii, iii, etc.) beginning with i. Page numbers for the body of the book should be Arabic numerals (1, 2, 3, ...), and the generated table of contents should reference all of that correctly.
Is there some way I can cause this to happen in the Epub->PDF conversion process? Can I, for example, provide some HTML (depending on classes) that will cause numbering to emit LC Roman numerals for some files/sections and Arabic numerals for others? Is there something that I can insert on the Epub side to help or accomplish this? I see some murky references to a "pagelist" that Sigil might be able to generate, but there's nothing obvious in the Sigil tools about this (maybe a plugin?).
Just not sure which way to go on this. My work-around would be to take the Epub file apart, convert each part separately, and then patch any problems (e.g., in the table of contents) with direct PDF editing. But that seems pretty crude.
I was given a fixed-width EPUB file generated by Adobe InDesign. I'm wondering if it's possible to use Calibre or anything else to convert it to a reflowable EPUB file.
Hi. New user here. I'm posting here because this is a recent thread (quick search for DRM, ePUB, MOBI etc showed mostly several-years-old threads). I'm also a new Kindle user, so I hope this post won't cause *too* much eye-rolling.
I learned to check out books from libraries using OverDrive- Kindle books only. Now I'm looking to branch out to checking "ePUB" books.
i.e.
- downloaded calibre
- set up @kindle email address
- since calibre suggested setting up @gmx.com email account, did that too
- then needed to download "adobe digital editions"
I think I have done *ALL* of it and yet ... this is what happens when I try to convert ePUB to MOBI:
- open library OverDrive account
- download EPUB book (stores as .acsm file)
- open .acsm in Adobe Digital Editions
- add .acsm file to library, seems to store as a EPUB file in the /My Digital Editions/ folder
- open Calibre library, add the EPUB book
FINALLY ... then when I click "convert books" to MOBI, I get the message "cannot convert; this book is locked by DRM"
I am at about the limit of my tech skills and knowledge here. Based on what I read, I thought the earlier step of using Adobe Digital Editions was what unlocked the .acsm file I got from the library? And indeed, since it looks like the file format is now EPUB, not sure why it still says locked by DRM?
Would very much appreciate any help pointing me in the correct direction highlighting what (obvious?) step I am missing.
Thanks!
(Oh and good luck Will2, I clearly have zero help for your issue, but am thankful (?) for the chance to piggyback onto your thread ... hope that is okay)
I am using Calibre 4.2.3, and have installed both tools in DeDRM Tools 6.8.1
When I saw this:
Release: 4.23 [21 Aug, 2020]
New features
Kobo driver: Add support for new firmware. Also add recognition of 'Kobo Plus' subscription books
I thought that I would be able to grab (and make local DRM-free copies of) books from a Kobo Plus subscription, perhaps in conjunction with the Obok DeDRM plugin. But so far, DRM remains on most books I've tried (the only ones I could read were some free ebooks from Kobo and one Kobo Plus book from a small publisher that maybe didn't have any DRM to start with).
Is there a way to convert most Kobo Plus books using Calibre (along with DeDRM?) so that they are readable?
Hello. So, when I'm converting PDF to MOBI I get weird result, pages are duplicated. I will put here some screens how result looks like. Maybe someone will help me here, because I can't find any right information how to fix that. Please, help in this situation.
So, in example, after converting I have this:
First page is like original
2nd, 3rd and 4th pages are converted of first page,
And so on, next page will be original and others will be like converted.
I'm not sure that this ultimately matters to me, but it is (to me) unexpected behavior.
My Epub3 book contains several colored images. In addition, links are displayed in the traditional blue and underlined. This includes links for endnote numbers.
For (Amazon) print format purposes, I would like to generate a PDF that is color-free. That version of the Epub3 source uses grayscale versions of the images: no problem, of course. I have a CSS class (.isDisabled) referenced in each of my links which sets the color to black, the cursor to "disallowed", pointer-events to "none", and text-decoration to "none". In the Sigil viewer, this has the desired effect, and the links just don't appear.
The Kindle Previewer does not honor this class at all. The links appear in it as usual (active, blue, and underlined). Well, that's KDP. I don't know what expectations to have about its general handling of CSS. So I basically take what I get, and in this case it doesn't matter since I don't use this class for the Kindle version.
In Calibre, when I convert to PDF and do NOT check the "color" box under Look & feel -> Styling -> Filter style information, that .isDisabled CSS class is honored and none my links appear (Great!!). But of course, the other colors (e.g., backgrounds in display boxes, etc.) do appear.
Now ... wait for it ... you can probably guess what's coming ... :)
When I DO check the "color" box in the "Filter style information", the result is that all the specific color in backgrounds and such is removed so I get just black text (Great! As expected.). BUT THE LINKS APPEAR, are blue, and are active!!! Oddly, they are not underlined. So it appears the converter is partly honoring and partly not honoring that class. So it appears that when I try to suppress colors in the style information, this causes the converter to ignore the color (and other!!) settings in my .isDisabled class. This seems peculiar, though I can almost guess how it's being done.
As I say, I don't THINK this will make a material difference to me since I THINK (but haven't tested) that when I hand a PDF to KDP containing colored links and tell it to print in B&W, it will just do that and not grayscale the links. But I am curious about this conversion behavior with the style information setting.
Comments?
Also, is there anything I've overlooked in the conversion settings that will result in ALL of the text in the document appear in black (including the links) and without underlining?
Ok basically I used Kindle Comic Converter to modify a Manga I purchased on kobo store, so after modifying two images I by converted the images of the original file to epub, then I got the epub on Calibre and used it to convert the file to kepub and send it to my kobo Clara hd. Long story short, the final result is terrible, because it has moderately big white margins over and under the images, which were not present on the original ebook. So I tried to just convert the images to epub with KCC and send the file to the kobo without using calibre, and the white margins weren't there, just like in the original manga. So I guess this is a calibre problem, anyone can help me? I'm using calibre mainly because I want to convert the file to kepub so it's smoother, I can zoom ecc. on my device and I use a plugin, kobo books to download the Metadata from kobo store since I'm just modifying modifying books that I've purchased there.
While there are no "standards" for what page headers should contain in printed books, there are some common practices. One is that, particularly in books of a technical nature, left-hand pages display the Chapter Title (left-aligned) and the Chapter Number (right-aligned). Right-hand pages then similarly display the Section Number (left-alighed) and the Section Title (right-aligned).
What would be required to accomplish this in converting an Epub to PDF in Calibre?
Hello everyone, I already apologize for the question, but I could not find any information about it.
I tried to convert, via the command line, an ebook in .epub format to a .mobi caliber format, inserting options, but they don't seem to work.
I would like to have the first image removed from the file during the conversion and then inserted the one from the metadata.
Is correct? Unfortunately the result doesn't return what it should. In fact the file is converted without these options.
Thanks in advance for the help.
As I said in the introduction, I used Calibre to produce readable PDFs from eBooks formats but in the past they could not be searched, so I would then GhostScript to coimplete the conversion process.
In Calibre version 5.4.2 the search problem vanished, producing a readable and searchable PDF in a single pass without the second step of GhostScript.
Sample: First Principles - Thomas E. Ricks 01.pdf
I was thrilled, but when I upgraded to the next version of Calibre 5.6.0 a new problem became evident despite using the same settings.
Hard to describe, better to show the sample than try to describe but the the text is horizontally compressed.
Sample: First Principles - Thomas E. Ricks 01.pdf
I had to back down to the previous version but this will not lat forever as I will need to upgrade at some point.
I also included the epub sample: First Principles - Thomas E. Ricks.epub