Quantcast
Channel: MobileRead Forums - Conversion
Viewing all 3900 articles
Browse latest View live

Newbie text to epub conversion

$
0
0
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.

Superscript format lost in pdf to epub conversion using Calibre

$
0
0
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?

Epub3->PDF failing in odd way

$
0
0
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.

Any ideas?

I can't convert an Epub into a PDF

$
0
0
Is it because it has DRM, or because it is EPUB3? I don't know, but here's the code anyway:

Code:

calibre, version 4.23.0 (win32, embedded-python: True)
Conversion error: Non riuscita: Converti libro 1 di 1 (Inside the Real Area 51)

Converti libro 1 di 1 (Inside the Real Area 51)
Conversion options changed from defaults:
  read_metadata_from_opf: u'C:\\Users\\ALMARK~1\\AppData\\Local\\Temp\\calibre_9mdrs6\\drrym8.opf'
  cover: u'C:\\Users\\ALMARK~1\\AppData\\Local\\Temp\\calibre_9mdrs6\\jvtnji.jpeg'
  verbose: 2
  output_profile: u'kindle'
Resolved conversion options
calibre version: 4.23.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\ALMARK~1\\AppData\\Local\\Temp\\calibre_9mdrs6\\jvtnji.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x000002DDAB2D75C8>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 '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,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x000002DDAB2DAA48>,
 'page_breaks_before': u'/',
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\ALMARK~1\\AppData\\Local\\Temp\\calibre_9mdrs6\\drrym8.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 '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: EPUB Input running
on C:\Users\ALMARK~1\AppData\Local\Temp\calibre_9mdrs6\doagqe.epub
Parsing all content...
Python function terminated unexpectedly
  Spine is empty (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 1121, in run
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1316, in create_oebbook
  File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
  File "site-packages\calibre\ebooks\oeb\reader.py", line 699, in _all_from_opf
  File "site-packages\calibre\ebooks\oeb\reader.py", line 344, in _spine_from_opf
calibre.ebooks.oeb.base.OEBError: Spine is empty

EPUB to pdf conversion in version 5.6 64bits

$
0
0
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.

Points vs pixels in PDF output

$
0
0
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?

Failure

$
0
0
I recive this message after a conversion.

calibre, version 5.6.0 (darwin, embedded-python: True)
Code:

Conversion error: Failed: Convert book 1 of 1 (dignidad (Ensayo) (Spanish Edition))

Convert book 1 of 1 (dignidad (Ensayo) (Spanish Edition))
DeDRM v7.0.0: Trying to decrypt bnx6zwj_.azw3
Using Library AlfCrypto Python
Using Library AlfCrypto Python
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: dignidad (Ensayo) (Spanish Edition)
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 10 keys to try after 0.1 seconds
Crypto Type is: 2
File is encoded with PID b'7PUMOtXj73'.
Decrypting. Please wait . . . . done
Decryption succeeded after 1.6 seconds
DeDRM v7.0.0: Finished after 1.6 seconds
Conversion options changed from defaults:
  output_profile: 'kindle_pw3'
  read_metadata_from_opf: '/var/folders/x8/rc92y2k918b3bd8w9651vdn40000gn/C/calibre_5.6.0_tmp_33mu8qy_/qnf6vj0h.opf'
  cover: '/var/folders/x8/rc92y2k918b3bd8w9651vdn40000gn/C/calibre_5.6.0_tmp_33mu8qy_/ks_z8qzv.jpeg'
  verbose: 2
Resolved conversion options
calibre version: 5.6.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': 'original',
 'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
            "'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
            "'i')) or @class = 'chapter']",
 'chapter_mark': 'pagebreak',
 'comments': None,
 'cover': '/var/folders/x8/rc92y2k918b3bd8w9651vdn40000gn/C/calibre_5.6.0_tmp_33mu8qy_/ks_z8qzv.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': '',
 'fix_indents': True,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x10df8dd60>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 '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,
 'mobi_file_type': 'old',
 'mobi_ignore_margins': False,
 'mobi_keep_original_images': False,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': True,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.KindlePaperWhite3Output object at 0x10df9b3d0>,
 'page_breaks_before': "//*[name()='h1' or name()='h2']",
 'personal_doc': '[PDOC]',
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': '/var/folders/x8/rc92y2k918b3bd8w9651vdn40000gn/C/calibre_5.6.0_tmp_33mu8qy_/qnf6vj0h.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': '',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 '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}
DeDRM v7.0.0: Trying to decrypt xe1o08ge.azw3
MobiDeDrm v1.0.
Copyright © 2008-2020 The Dark Reverser, Apprentice Harper et al.
Decrypting Kindle Format 8 ebook: dignidad (Ensayo) (Spanish Edition)
Got DSN key from database default_key
Got DSN key from database default_key_2
Found 10 keys to try after 0.0 seconds
Crypto Type is: 0
This book is not encrypted.
Decryption succeeded after 0.0 seconds
DeDRM v7.0.0: Finished after 0.0 seconds
InputFormatPlugin: MOBI Input running
on /var/folders/x8/rc92y2k918b3bd8w9651vdn40000gn/C/calibre_5.6.0_tmp_33mu8qy_/13rng695.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 39, in <module>
  File "site.py", line 35, in main
  File "calibre/utils/ipc/worker.py", line 215, in main
  File "calibre/gui2/convert/gui_conversion.py", line 41, in gui_convert_override
  File "calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert
  File "calibre/ebooks/conversion/plumber.py", line 1108, in run
  File "calibre/customize/conversion.py", line 245, in __call__
  File "calibre/ebooks/conversion/plugins/mobi_input.py", line 47, in convert
  File "calibre/ebooks/mobi/reader/mobi8.py", line 114, in __call__
  File "calibre/ebooks/mobi/reader/mobi8.py", line 467, in expand_text
  File "calibre/ebooks/mobi/reader/markup.py", line 339, in expand_mobi8_markup
  File "calibre/ebooks/mobi/reader/markup.py", line 217, in update_flow_links
TypeError: sequence item 3: expected str instance, bytes found




Any help??

problems converting a kindle book I've just bought

$
0
0
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 NINEI’VE GOT ACRUSH ON YOU
Detected chapter: CHAPTER TENLEPROSY
Detected chapter: CHAPTER ELEVENHAPPY BIRTHDAY,DEAR CHRISTOPHER
Detected chapter: CHAPTER TWELVEALL ALONE
Detected chapter: CHAPTER THIRTEENADAM’S 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

Page numbers in Epub->PDF conversion

$
0
0
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.

Thanks for any insight.

Convert fixed-width to reflowable EPUB?

$
0
0
Forgive me, I'm a total newbie to this stuff.

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.

ACSM issues

$
0
0
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 found and followed the steps here:
https://www.pcmag.com/how-to/how-to-...-amazon-kindle

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)

Having Conversion Issue from epub to PDF/DOCX

$
0
0
I am having some issues with conversion with a book, hasn't happened in a while. all my plugins are current.

I am not sure if it's DRM issue; previous DRM books Calibre able to remove.

I am getting follow error message, again not sure why this is suddenly happening.

Also, another question, on some conversion in the past, after the book was converted, everything was off in the book. Is there reason for that?

thanks
Jeff
Spoiler:

Convert book 1 of 1 (Mango and Peppercorns)
Failed to initialize plugin: 'C:\\Users\\Jeff Liu\\AppData\\Roaming\\calibre\\plugins\\DeDRM.zip '
Conversion options changed from defaults:
read_metadata_from_opf: 'C:\\Users\\JEFFLI~1\\AppData\\Local\\Temp\\calibr e_rit4km7p\\qf3fvf4m.opf'
output_profile: 'kindle_fire'
verbose: 2
Resolved conversion options
calibre version: 5.6.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': False,
'docx_no_toc': False,
'docx_page_margin_bottom': 72.0,
'docx_page_margin_left': 72.0,
'docx_page_margin_right': 72.0,
'docx_page_margin_top': 72.0,
'docx_page_size': 'letter',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x082A5D48>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'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,
'new_pdf_engine': False,
'no_chapters_in_toc': False,
'no_images': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.KindleFireOutput object at 0x082AF028>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\JEFFLI~1\\AppData\\Local\\Temp\\calibr e_rit4km7p\\qf3fvf4m.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'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,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_factor': 0.45,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: PDF Input running
on C:\Users\JEFFLI~1\AppData\Local\Temp\calibre_rit4k m7p\hfdtr5sy.pdf
Converting file to html...
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
File "calibre\utils\ipc\worker.py", line 215, in main
File "calibre\gui2\convert\gui_conversion.py", line 41, in gui_convert_override
File "calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
File "calibre\ebooks\conversion\plumber.py", line 1108, in run
File "calibre\customize\conversion.py", line 245, in __call__
File "calibre\ebooks\conversion\plugins\pdf_input.p y", line 54, in convert
File "calibre\ebooks\pdf\pdftohtml.py", line 83, in pdftohtml
calibre.ebooks.ConversionError: pdftohtml failed with return code: 1
Syntax Error: Couldn't find the 'EBX_HANDLER' security handler

Can't convert anything into anything

$
0
0
As mentioned in the title. I've uninstalled and used other versions of calibre, to no avail... See an example below.

Any help? Thanks in advance.

calibre, version 3.48.0 (win32, embedded-python: True)
Erreur lors de la conversion: Échoué: Conversion du livre 1 sur 1 (The Canterbury Tales)

Conversion du livre 1 sur 1 (The Canterbury Tales)
C:\Program Files\Calibre2\app\pylib.zip\dateutil\parser.py:60 1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Conversion options changed from defaults:
read_metadata_from_opf: u'C:\\Users\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\dlpedt.opf'
cover: u'C:\\Users\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\twt1dw.jpeg'
output_profile: u'kobo'
verbose: 2
Resolved conversion options
calibre version: 3.48.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'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\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\twt1dw.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'2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000000000403C5F8>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'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.KoboReaderOutput object at 0x000000000403CD68>,
'page_breaks_before': u'/',
'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\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\dlpedt.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'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: EPUB Input running
on C:\Users\Kess\AppData\Local\Temp\calibre_zxrdq0\tu tssr.epub
Python function terminated unexpectedly
[Error 5] Acc�s refus: u'C:\\Users\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\5vjmko_plumber' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 199, 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 1110, in run
File "site-packages\calibre\customize\conversion.py", line 241, in __call__
File "site-packages\calibre\__init__.py", line 435, in __enter__
WindowsError: [Error 5] Acc�s refus: u'C:\\Users\\Kess\\AppData\\Local\\Temp\\calibre_z xrdq0\\5vjmko_plumber'

Kobo Plus (subscr.) DeDRM conversion possible?

$
0
0
Hi all,

I'm new, so please be gentle with me. :)

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?

When converting PDF to MOBI pages are duplicated

$
0
0
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.

https://ibb.co/5KdFCj9
https://ibb.co/KVqmZB6
https://ibb.co/C2j6Cyv
https://ibb.co/KmY9cYQ

So how to remove that original page?

Color removal in conversion to PDF

$
0
0
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?

Calibre adds margins

$
0
0
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.

Possible header content?

$
0
0
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?

ebook-convert settings problem

$
0
0
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.

The command I entered is this:

Code:

ebook-convert file_name.epub file_name.mobi --remove-first-image --prefer-metadata-cover
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.

Problem with EPUb to PDf coversion in new Calibre version

$
0
0
I have been using Calibre for several years but I am certainly no expert.

Some background on my process in my introduction to Calibre, "My Calibre Usage..."

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

Thank you.

Viewing all 3900 articles
Browse latest View live