conversion from ePub to PDF fails

Bug #1792616 reported by Marc Bizer on 2018-09-14
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre 3.31
Mac OS 10.13.6

Why is this failing?

calibre, version 3.31.0 (darwin, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))

Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir /Users/mbizer/Library/Preferences/calibre/plugins/DeDRM/6.1.0
DeDRM v6.1.0: In initialize
Conversion options changed from defaults:
  pdf_page_numbers: True
  cover: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg'
  input_profile: 'kindle'
  pdf_sans_family: u'Helvetica'
  level1_toc: u'//h:h4'
  verbose: 2
  read_metadata_from_opf: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Zqc7__.opf'
  pdf_default_font_size: 16
  pdf_mono_family: u'Courier New'
  preserve_cover_aspect_ratio: True
  pdf_use_document_margins: True
  output_profile: 'ipad3'
  pdf_serif_family: u'Times New Roman'
  level2_toc: u'//h:h5'
  enable_heuristics: True
Resolved conversion options
calibre version: 3.31.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'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg',
 'custom_size': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': True,
 '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': None,
 'input_profile': <calibre.customize.profiles.KindleInput object at 0x1169dcf50>,
 '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': u'//h:h4',
 'level2_toc': u'//h:h5',
 '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.iPad3Output object at 0x1169653d0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'paper_size': u'letter',
 'pdf_add_toc': False,
 'pdf_default_font_size': 16,
 'pdf_footer_template': None,
 'pdf_header_template': None,
 'pdf_hyphenate': False,
 'pdf_mark_links': False,
 'pdf_mono_family': u'Courier New',
 '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_numbers': True,
 'pdf_sans_family': u'Helvetica',
 'pdf_serif_family': u'Times New Roman',
 'pdf_standard_font': u'serif',
 'pdf_use_document_margins': True,
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': True,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Zqc7__.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': '[]',
 'uncompressed_pdf': False,
 'unit': u'inch',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'use_profile_size': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on /var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/mVtQru.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0004.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Parsing text/part0003.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 186, Average words per section is: 186, Marked up 0 chapters
Hard line breaks check returned False
Median line length is 81, calculated with html format
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing text/part0012.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 1839, Average words per section is: 919, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 715, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0016.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 4687, Average words per section is: 2343, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 933, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0009.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 2166, Average words per section is: 1083, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 733, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0019.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 334, Average words per section is: 334, Marked up 1 chapters
Hard line breaks check returned True
Median line length is 138, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0007.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 3491, Average words per section is: 3491, Marked up 1 chapters
Hard line breaks check returned False
Median line length is 755, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0020.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 2980, Average words per section is: 2980, Marked up 1 chapters
Hard line breaks check returned True
Median line length is 52, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0018.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 1 pre-existing headings
Total wordcount is: 509, Average words per section is: 509, Marked up 1 chapters
Hard line breaks check returned False
Median line length is 560, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0017.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 3540, Average words per section is: 1770, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 559, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0011.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 5574, Average words per section is: 2787, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 776, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0014.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 4260, Average words per section is: 2130, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 811, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0002.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Parsing text/part0001.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
uppercase had 5 hits - 5 chapters with no title, 0 chapters with titles, 0.0 percent.
Marked 0 headings, Searching for chapters with Uppercase Characters
marked 1 chapters. - EIGHTEENTH-CENTURY
marked 2 chapters. - INTERNATIONAL
marked 3 chapters. - THE NEW TESTAMENT AS
marked 4 chapters. - SOCIAL AND CULTURAL
marked 5 chapters. - THE WORLD TRADE
Total wordcount is: 1126, Average words per section is: 225, Marked up 5 chapters
Hard line breaks check returned True
Median line length is 45, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0010.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 5229, Average words per section is: 2614, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 756, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0005.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 96, Average words per section is: 96, Marked up 0 chapters
Hard line breaks check returned True
Median line length is 144, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing text/part0008.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 509, Average words per section is: 254, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 569, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0006.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 0 pre-existing headings
Total wordcount is: 259, Average words per section is: 259, Marked up 0 chapters
Hard line breaks check returned True
Median line length is 80, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Looking for more split points based on punctuation, currently have 0
Formatting scene breaks
Parsing styles/0001.css ...
Parsing text/part0013.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 3432, Average words per section is: 1716, Marked up 2 chapters
Hard line breaks check returned False
Median line length is 638, calculated with html format
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0015.html ...
********* Heuristic processing HTML *********
There are 0 blank lines. 0.0 percent blank
minimum chapters required are: 1
found 2 pre-existing headings
Total wordcount is: 1141, Average words per section is: 570, Marked up 2 chapters
Hard line breaks check returned True
Median line length is 1019, calculated with html format
Unwrapping required, unwrapping Lines
Fixing hyphenated content
Formatting scene breaks
Parsing text/part0000.html ...
********* Heuristic processing HTML *********
flow is too short, not running heuristics
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
 Detected chapter: Part I
 Detected chapter: Part II
 Detected chapter: Part III
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Removing fake margins...
Found 1100 items of level: p_1
Negative text indent detected at level p_1, ignoring this level
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00016.jpeg' from manifest
Python function terminated unexpectedly: 'NoneType' object has no attribute 'data'
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/utils/ipc/worker.py", line 195, in main
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 33, in gui_convert_override
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 26, in gui_convert
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 1270, in run
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 191, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 263, in convert_text
AttributeError: 'NoneType' object has no attribute 'data'
Creating PDF Output...
Splitting markup on page breaks and flow limits, if any...
  Splitting on page-break at id=pt02
  Splitting on page-break at id=further
  Splitting on page-break at id=introduction
  Splitting on page-break at id=conclusion
  Splitting on page-break at id=calibre_pb_0
  Splitting on page-break at id=calibre_pb_0
  Splitting on page-break at id=calibre_pb_1
  Splitting on page-break at id=calibre_pb_2
  Splitting on page-break at id=calibre_pb_3
  Splitting on page-break at id=calibre_pb_4
 Split into 6 parts
  Splitting on page-break at id=pt01
  Splitting on page-break at id=pt03
  Splitting on page-break at id=calibre_pb_0
Converting input as a text based book...
Serializing oeb input to disk for processing...

Marc Bizer (thersites) wrote :
Marc Bizer (thersites) wrote :

The failure occurs when I check "Use page margins from document being converted" -- otherwise the conversion is successful.

Kovid Goyal (kovid) wrote :

Works for me with that option, however, I have additionally made a change that should prevent the error you posted from ever occurring.

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Download full text (16.9 KiB)

Thanks for the quick reply, Kovid! How can I change the font sizes in a TOC? And can page numbers be added to it?

—Marc

> On Sep 14, 2018, at 8:26 PM, Kovid Goyal <email address hidden> wrote:
>
> Works for me with that option, however, I have additionally made a
> change that should prevent the error you posted from ever occurring.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1792616
>
> Title:
> conversion from ePub to PDF fails
>
> Status in calibre:
> Fix Released
>
> Bug description:
> Calibre 3.31
> Mac OS 10.13.6
>
> Why is this failing?
>
> calibre, version 3.31.0 (darwin, embedded-python: True)
> Conversion error: Failed: Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
>
> Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
> DeDRM v6.1.0: In __init__
> DeDRM v6.1.0: In load_resources
> DeDRM v6.1.0: verdir /Users/mbizer/Library/Preferences/calibre/plugins/DeDRM/6.1.0
> DeDRM v6.1.0: In initialize
> Conversion options changed from defaults:
> pdf_page_numbers: True
> cover: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg'
> input_profile: 'kindle'
> pdf_sans_family: u'Helvetica'
> level1_toc: u'//h:h4'
> verbose: 2
> read_metadata_from_opf: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Zqc7__.opf'
> pdf_default_font_size: 16
> pdf_mono_family: u'Courier New'
> preserve_cover_aspect_ratio: True
> pdf_use_document_margins: True
> output_profile: 'ipad3'
> pdf_serif_family: u'Times New Roman'
> level2_toc: u'//h:h5'
> enable_heuristics: True
> Resolved conversion options
> calibre version: 3.31.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'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg',
> 'custom_size': None,
> 'debug_pipeline': None,
> 'dehyphenate': True,
> 'delete_blank_paragraphs': True,
> 'disable_font_rescaling': False,
> 'duplicate_links_in_toc': False,
> 'embed_all_fonts': False,
> 'embed_font_family': None,
> 'enable_heuristics': True,
> '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': None,
> 'input_profile': <calibre.customize.profiles.KindleInput object at 0x1169dcf50>,
> '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': u'//h:h4',
> 'level2_toc': u'//h:h5',
> ...

Marc Bizer (thersites) wrote :

Thanks for the quick reply, Kovid! How can I change the font sizes in a TOC? And can page numbers be added to it? See attached screenshot.

—Marc

Kovid Goyal (kovid) wrote :

You can change font sizes in any text using CSS properties, which you can edit using the calibre editor. Conversion simply reads those properties and converts them into PDF commands as best it can.

If you need help with CSS, a good place to ask is the forums at mobileread.com

Marc Bizer (thersites) wrote :
Download full text (17.1 KiB)

But do you know why the sizes appear to be so wrong for the TOC after the conversion? It gets the CSS properties from the .azw source file?

—Marc

> On Sep 14, 2018, at 10:41 PM, Kovid Goyal <email address hidden> wrote:
>
> You can change font sizes in any text using CSS properties, which you
> can edit using the calibre editor. Conversion simply reads those
> properties and converts them into PDF commands as best it can.
>
> If you need help with CSS, a good place to ask is the forums at
> mobileread.com
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1792616
>
> Title:
> conversion from ePub to PDF fails
>
> Status in calibre:
> Fix Released
>
> Bug description:
> Calibre 3.31
> Mac OS 10.13.6
>
> Why is this failing?
>
> calibre, version 3.31.0 (darwin, embedded-python: True)
> Conversion error: Failed: Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
>
> Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
> DeDRM v6.1.0: In __init__
> DeDRM v6.1.0: In load_resources
> DeDRM v6.1.0: verdir /Users/mbizer/Library/Preferences/calibre/plugins/DeDRM/6.1.0
> DeDRM v6.1.0: In initialize
> Conversion options changed from defaults:
> pdf_page_numbers: True
> cover: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg'
> input_profile: 'kindle'
> pdf_sans_family: u'Helvetica'
> level1_toc: u'//h:h4'
> verbose: 2
> read_metadata_from_opf: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Zqc7__.opf'
> pdf_default_font_size: 16
> pdf_mono_family: u'Courier New'
> preserve_cover_aspect_ratio: True
> pdf_use_document_margins: True
> output_profile: 'ipad3'
> pdf_serif_family: u'Times New Roman'
> level2_toc: u'//h:h5'
> enable_heuristics: True
> Resolved conversion options
> calibre version: 3.31.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'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg',
> 'custom_size': None,
> 'debug_pipeline': None,
> 'dehyphenate': True,
> 'delete_blank_paragraphs': True,
> 'disable_font_rescaling': False,
> 'duplicate_links_in_toc': False,
> 'embed_all_fonts': False,
> 'embed_font_family': None,
> 'enable_heuristics': True,
> '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': None,
> 'input_profile': <calibre.customize.profiles.KindleInput object at 0x1169dcf50>,
> 'insert_blank_line': False,
> 'insert_blank_line_size': 0.5,
> 'insert_metadata...

Turn off th efont size notmalization setting in the look & feel section
of the conversion dialog.

Download full text (16.8 KiB)

If you mean, “Disable font size rescaling,” checking it made no difference! Weird.

—Marc

> On Sep 14, 2018, at 11:07 PM, Kovid Goyal <email address hidden> wrote:
>
> Turn off th efont size notmalization setting in the look & feel section
> of the conversion dialog.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1792616
>
> Title:
> conversion from ePub to PDF fails
>
> Status in calibre:
> Fix Released
>
> Bug description:
> Calibre 3.31
> Mac OS 10.13.6
>
> Why is this failing?
>
> calibre, version 3.31.0 (darwin, embedded-python: True)
> Conversion error: Failed: Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
>
> Convert book 1 of 1 (American Immigration: A Very Short Introduction (Very Short Introductions))
> DeDRM v6.1.0: In __init__
> DeDRM v6.1.0: In load_resources
> DeDRM v6.1.0: verdir /Users/mbizer/Library/Preferences/calibre/plugins/DeDRM/6.1.0
> DeDRM v6.1.0: In initialize
> Conversion options changed from defaults:
> pdf_page_numbers: True
> cover: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg'
> input_profile: 'kindle'
> pdf_sans_family: u'Helvetica'
> level1_toc: u'//h:h4'
> verbose: 2
> read_metadata_from_opf: u'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Zqc7__.opf'
> pdf_default_font_size: 16
> pdf_mono_family: u'Courier New'
> preserve_cover_aspect_ratio: True
> pdf_use_document_margins: True
> output_profile: 'ipad3'
> pdf_serif_family: u'Times New Roman'
> level2_toc: u'//h:h5'
> enable_heuristics: True
> Resolved conversion options
> calibre version: 3.31.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'/var/folders/_9/7dm82tzx6r7cq0lskfn3hcz80000gn/C/calibre_3.31.0_tmp_tOgcZ5/Pt19Nr.jpeg',
> 'custom_size': None,
> 'debug_pipeline': None,
> 'dehyphenate': True,
> 'delete_blank_paragraphs': True,
> 'disable_font_rescaling': False,
> 'duplicate_links_in_toc': False,
> 'embed_all_fonts': False,
> 'embed_font_family': None,
> 'enable_heuristics': True,
> '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': None,
> 'input_profile': <calibre.customize.profiles.KindleInput object at 0x1169dcf50>,
> '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': u'//h:h4',
> 'level2_toc': u'//h:h5',
> 'level3_toc': None,
> 'line_height': 0.0,
> 'linearize_tables': ...

Kovid Goyal (kovid) wrote :

I'll take a look at it when I have a little more time.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers