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-19-2019, 08:04 AM   #1
eevan
Junior Member
eevan began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2013
Location: Belgrade, Serbia
Device: Kobo Glo
Conversion from epub to pdf is failing

Hello,
I have tried to convert several of my epubs to pdf. But every time it fails with the same error. Calibre version is 3.41.1 64-bit on Win 10.

Here is the conversion error output:
Spoiler:
Convert book 1 of 1 (Autostoperski vodič kroz galaksiju)
Conversion options changed from defaults:
disable_font_rescaling: True
preserve_cover_aspect_ratio: True
paper_size: u'b4'
pdf_mono_family: u'Iosevka'
keep_ligatures: True
output_profile: 'generic_eink_hd'
cover: u'C:\\Users\\ivanp\\AppData\\Local\\Temp\\calibre_ vofy2n\\u64a3x.jpeg'
input_encoding: u'utf-8'
prefer_metadata_cover: True
remove_fake_margins: False
verbose: 2
read_metadata_from_opf: u'C:\\Users\\ivanp\\AppData\\Local\\Temp\\calibre_ vofy2n\\yxsghk.opf'
unit: u'millimeter'
pdf_serif_family: u'Linux Libertine O'
pdf_hyphenate: True
pdf_use_document_margins: True
custom_size: u'160x200'
Resolved conversion options
calibre version: 3.41.1
{'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\\ivanp\\AppData\\Local\\Temp\\calibre_ vofy2n\\u64a3x.jpeg',
'custom_size': u'160x200',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': u'utf-8',
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000011561D876D8>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': 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_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEinkHD object at 0x0000011561D87A90>,
'page_breaks_before': u'/',
'paper_size': u'b4',
'pdf_add_toc': False,
'pdf_default_font_size': 20,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_hyphenate': True,
'pdf_mark_links': False,
'pdf_mono_family': u'Iosevka',
'pdf_mono_font_size': 16,
'pdf_page_margin_bottom': 72.0,
'pdf_page_margin_left': 72.0,
'pdf_page_margin_right': 72.0,
'pdf_page_margin_top': 72.0,
'pdf_page_number_map': None,
'pdf_page_numbers': False,
'pdf_sans_family': u'Liberation Sans',
'pdf_serif_family': u'Linux Libertine O',
'pdf_standard_font': u'serif',
'pdf_use_document_margins': True,
'prefer_metadata_cover': True,
'preserve_cover_aspect_ratio': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\ivanp\\AppData\\Local\\Temp\\calibre_ vofy2n\\yxsghk.opf',
'remove_fake_margins': False,
'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': '[]',
'uncompressed_pdf': False,
'unit': u'millimeter',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\d s89cj.epub
Found HTML cover OEBPS/Text/cover.xhtml
Parsing all content...
Parsing OEBPS/Text/p33.xhtml ...
Parsing OEBPS/Text/p21.xhtml ...
Parsing OEBPS/Text/p09.xhtml ...
Parsing OEBPS/Text/p26.xhtml ...
Parsing OEBPS/Text/p30.xhtml ...
Parsing OEBPS/Text/cover.xhtml ...
Parsing OEBPS/Text/p24.xhtml ...
Parsing OEBPS/Text/p17.xhtml ...
Parsing OEBPS/Text/p04.xhtml ...
Parsing OEBPS/Text/p05.xhtml ...
Parsing OEBPS/Text/p34.xhtml ...
Parsing OEBPS/Text/p08.xhtml ...
Parsing OEBPS/Text/p06.xhtml ...
Parsing OEBPS/Text/p23.xhtml ...
Parsing OEBPS/Text/p14.xhtml ...
Parsing OEBPS/Text/p13.xhtml ...
Parsing OEBPS/Text/p12.xhtml ...
Parsing OEBPS/Text/p31.xhtml ...
Parsing OEBPS/Text/p01.xhtml ...
Parsing OEBPS/Text/p11.xhtml ...
Parsing OEBPS/Text/p35.xhtml ...
Parsing OEBPS/Text/p02.xhtml ...
Parsing OEBPS/Text/p28.xhtml ...
Parsing OEBPS/Styles/sirius.css ...
Parsing OEBPS/Text/p03.xhtml ...
Parsing OEBPS/Text/p29.xhtml ...
Parsing OEBPS/Text/p32.xhtml ...
Parsing OEBPS/Text/p16.xhtml ...
Parsing OEBPS/Text/p10.xhtml ...
Parsing OEBPS/Text/p18.xhtml ...
Parsing OEBPS/Text/p25.xhtml ...
Parsing OEBPS/Text/p36.xhtml ...
Parsing OEBPS/Text/p15.xhtml ...
Parsing OEBPS/Text/p07.xhtml ...
Parsing OEBPS/Text/Naslovna.xhtml ...
Parsing OEBPS/Text/p27.xhtml ...
Parsing OEBPS/Text/p22.xhtml ...
Parsing OEBPS/Text/p20.xhtml ...
Parsing OEBPS/Text/p19.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
Converting input as a text based book...
Serializing oeb input to disk for processing...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Rendering pages to PDF...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\Naslovna.xhtml...
Loading font: family_name=Linux Libertine O full_name=Linux Libertine O Italic postscript_name=LinLibertineOI subfamily_name=Italic
Loading font: family_name=Linux Libertine O full_name=Linux Libertine O postscript_name=LinLibertineO subfamily_name=Regular
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p01.xhtml...
Loading font: family_name=Linux Libertine SmCp full_name=Linux Libertine SmCp postscript_name=LinuxLibertineSmCp-Regular subfamily_name=Regular
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p02.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p03.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p04.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p05.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p06.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p07.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p08.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p09.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p10.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p11.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p12.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p13.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p14.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p15.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p16.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p17.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p18.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p19.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p20.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p21.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p22.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p23.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p24.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p25.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p26.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p27.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p28.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p29.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p30.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p31.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p32.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p33.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p34.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p35.xhtml...
Processing C:\Users\ivanp\AppData\Local\Temp\calibre_vofy2n\p _ygpz_pdf_out\OEBPS\Text\p36.xhtml...
Traceback (most recent call last):
File "site-packages\calibre\ebooks\pdf\render\engine.py", line 157, in end
File "site-packages\calibre\ebooks\pdf\render\serialize.py", line 518, in end
File "site-packages\calibre\ebooks\pdf\render\fonts.py", line 255, in embed_fonts
File "site-packages\calibre\ebooks\pdf\render\fonts.py", line 174, in embed
File "site-packages\calibre\ebooks\pdf\render\fonts.py", line 196, in write_to_unicode
File "site-packages\calibre\ebooks\pdf\render\fonts.py", line 105, in __init__
File "site-packages\calibre\ebooks\pdf\render\fonts.py", line 65, in to_hex_string
TypeError: rjust() argument 2 must be char, not unicode

Python function terminated unexpectedly
PDF Output failed, see log for details (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 200, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 42, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 27, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1271, in run
File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 196, in convert
File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 282, in convert_text
File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 308, in write
File "site-packages\calibre\ebooks\pdf\render\from_html.py", line 255, in dump
Exception: PDF Output failed, see log for details


Cheers!
eevan is offline   Reply With Quote
Old 04-19-2019, 08:11 AM   #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: 44,181
Karma: 23000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This was a bug introduced by the internal code changes, will be fixed in the next release.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub 2 PDF conversion with OCR in PDF possible? hobi2000 Conversion 2 03-25-2019 03:20 AM
ebook-convert - text to epub conversion failing flink Conversion 0 06-23-2017 06:03 AM
Docx to ePub conversion keeps failing oberon567 Conversion 3 11-06-2015 08:33 AM
[Solved] PDF to epub conversion failing on imbedded web link? Ronin2009 Conversion 3 10-24-2013 11:58 AM
Help! Conversion failing... Zerotoeleven Conversion 2 04-05-2011 11:24 PM


All times are GMT -4. The time now is 02:21 AM.


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