I was trying to convert a book on LaTeX from epub to pdf. But every time I tried, I got an error at the last moment (after the completion of 99% conversion). I tried converting to LTI and that worked fine. How may I get rid off this error? The error log is provided below:
Spoiler:
calibre, version 5.27.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (The LaTeX Companion)
Convert book 1 of 1 (The LaTeX Companion)
Conversion options changed from defaults:
verbose: 2
pdf_sans_family: 'MS Shell Dlg 2'
prefer_metadata_cover: True
cover: 'C:\\Users\\DOLPHI~1\\AppData\\Local\\Temp\\calibr e_yqbpxvh0\\0mr88c6n.jpeg'
read_metadata_from_opf: 'C:\\Users\\DOLPHI~1\\AppData\\Local\\Temp\\calibr e_yqbpxvh0\\e4df21g6.opf'
output_profile: 'generic_eink'
pdf_serif_family: 'MS Shell Dlg 2'
Resolved conversion options
calibre version: 5.27.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': 'C:\\Users\\DOLPHI~1\\AppData\\Local\\Temp\\calibr e_yqbpxvh0\\0mr88c6n.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': False,
'expand_css': False,
'extra_css': 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 0x07AC7EF8>,
'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_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x07AE00A0>,
'page_breaks_before': '/',
'paper_size': 'letter',
'pdf_add_toc': False,
'pdf_default_font_size': 20,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_hyphenate': False,
'pdf_mark_links': False,
'pdf_mono_family': 'Courier',
'pdf_mono_font_size': 16,
'pdf_odd_even_offset': 0.0,
'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': 'MS Shell Dlg 2',
'pdf_serif_family': 'MS Shell Dlg 2',
'pdf_standard_font': 'serif',
'pdf_use_document_margins': False,
'prefer_metadata_cover': True,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\DOLPHI~1\\AppData\\Local\\Temp\\calibr e_yqbpxvh0\\e4df21g6.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,
'toc_title': None,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': 'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\DOLPHI~1\AppData\Local\Temp\calibre_yqbpx vh0\wznqxqkm.epub
Parsing all content...
Parsing OEBPS/html/cover.html ...
Parsing OEBPS/html/pref00.html ...
Parsing OEBPS/html/title.html ...
Parsing OEBPS/html/copyright.html ...
Parsing OEBPS/html/pref01.html ...
Parsing OEBPS/html/ded01.html ...
Parsing OEBPS/html/toc.html ...
Parsing OEBPS/html/pref02.html ...
Parsing OEBPS/html/pref03.html ...
Parsing OEBPS/html/pref04.html ...
Parsing OEBPS/html/ch01.html ...
Parsing OEBPS/html/ch02.html ...
Parsing OEBPS/html/ch03.html ...
Parsing OEBPS/html/ch03a.html ...
Parsing OEBPS/html/ch04.html ...
Parsing OEBPS/html/ch05.html ...
Parsing OEBPS/html/ch06.html ...
Parsing OEBPS/html/ch07.html ...
Parsing OEBPS/html/ch07a.html ...
Parsing OEBPS/html/ch08.html ...
Parsing OEBPS/html/ch09.html ...
Parsing OEBPS/html/ch10.html ...
Parsing OEBPS/html/ch11.html ...
Parsing OEBPS/html/ch12.html ...
Parsing OEBPS/html/ch13.html ...
Parsing OEBPS/html/ch14.html ...
Parsing OEBPS/html/app01.html ...
Parsing OEBPS/html/app02.html ...
Parsing OEBPS/html/app03.html ...
Parsing OEBPS/html/app04.html ...
Parsing OEBPS/html/app05.html ...
Parsing OEBPS/html/index.html ...
Parsing OEBPS/html/index1.html ...
Parsing OEBPS/html/index2.html ...
Parsing OEBPS/html/index3.html ...
Parsing OEBPS/html/index4.html ...
Parsing OEBPS/html/index5.html ...
Parsing OEBPS/html/index6.html ...
Parsing OEBPS/html/index7.html ...
Parsing OEBPS/html/app06.html ...
Parsing OEBPS/html/app07.html ...
Parsing OEBPS/html/app08.html ...
Parsing OEBPS/html/app09.html ...
Parsing OEBPS/html/app10.html ...
Parsing OEBPS/html/9780133387643.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Chapter 1. Introduction
Detected chapter: Chapter 2. The Structure of a LaTeX Document
Detected chapter: Chapter 3. Basic Formatting Tools
Detected chapter: Chapter 4. The Layout of the Page
Detected chapter: Chapter 5. Tabular Material
Detected chapter: Chapter 6. Mastering Floats
Detected chapter: Chapter 7. Fonts and Encodings
Detected chapter: Chapter 8. Higher Mathematics
Detected chapter: Chapter 9. LaTeX in a Multilingual Environment
Detected chapter: Chapter 10. Graphics Generation and Manipulation
Detected chapter: Chapter 11. Index Generation
Detected chapter: Chapter 12. Managing Citations
Detected chapter: Chapter 13. Bibliography Generation
Detected chapter: Chapter 14. LaTeX Package Documentation Tools
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 2521 items of level: div_1
Found 815 items of level: p_2
Found 17011 items of level: p_1
Found 868 items of level: div_2
Found 1 items of level: div_3
Found 3 items of level: p_3
Ignoring level p_3
Ignoring level div_3
div_1 left margin stats: Counter({'': 2})
div_1 right margin stats: Counter({'': 2})
Negative text indent detected at level p_2, ignoring this level
Negative text indent detected at level p_1, ignoring this level
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Removing page margins specified in the Adobe page template
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/html/graphics/p0832_01.jpg' from manifest
Trimming 'OEBPS/html/graphics/p0875_01.jpg' from manifest
Trimming 'OEBPS/html/graphics/p0373_01.jpg' from manifest
Trimming 'OEBPS/html/graphics/p0417_02.jpg' from manifest
Trimming 'OEBPS/html/graphics/71hfd.jpg' from manifest
Trimming 'OEBPS/html/graphics/87643.jpg' from manifest
Trimming 'OEBPS/html/graphics/2-epsi.jpg' from manifest
Creating PDF Output...
Converting input as a text based book...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Removed 2 unused fonts
Merged 80 instances of Arial-BoldMT reducing size from 1.1 MB to 32.4 KB
Merged 26 instances of Arial-BoldItalicMT reducing size from 253.3 KB to 24.1 KB
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 16 prev_sz: 86 sz: 70
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 16 prev_sz: 86 sz: 70
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Size mismatch for glyph id: 0 prev_sz: 108 sz: 42
Size mismatch for glyph id: 36 prev_sz: 716 sz: 426
Size mismatch for glyph id: 40 prev_sz: 284 sz: 196
Size mismatch for glyph id: 41 prev_sz: 252 sz: 182
Size mismatch for glyph id: 48 prev_sz: 918 sz: 810
Size mismatch for glyph id: 49 prev_sz: 558 sz: 426
Size mismatch for glyph id: 50 prev_sz: 446 sz: 308
Size mismatch for glyph id: 55 prev_sz: 316 sz: 174
Merged 112 instances of ArialMT reducing size from 2.5 MB to 72.1 KB
Merged 74 instances of CourierNewPSMT reducing size from 1.2 MB to 46.8 KB
Merged 78 instances of Arial-ItalicMT reducing size from 1 MB to 31.4 KB
Merged 70 instances of LucidaSans reducing size from 579.5 KB to 17.1 KB
Merged 52 instances of ArialUnicodeMS reducing size from 1.8 MB to 57.5 KB
Merged 8 instances of CourierNewPS-ItalicMT reducing size from 60.7 KB to 18.5 KB
Merged 2 instances of Helvetica reducing size from 5 KB to 4.7 KB
Merged 2 instances of Helvetica-Condensed-Bold reducing size from 6.1 KB to 4 KB
Merged 2 instances of Helvetica-Black reducing size from 5.7 KB to 3.7 KB
Merged 4 instances of CambriaMath reducing size from 92.4 KB to 21.5 KB
Merged 2 instances of TimesNewRomanPSMT reducing size from 28.1 KB to 20.8 KB
Merged 4 instances of LucidaSans-Italic reducing size from 21.1 KB to 6 KB
Merged 2 instances of LucidaSans-Demi reducing size from 10.8 KB to 8.1 KB
Removed 16 duplicate images
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 216, 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 1271, in run
File "calibre\ebooks\conversion\plugins\pdf_output. py", line 188, in convert
File "calibre\ebooks\conversion\plugins\pdf_output. py", line 254, in convert_text
File "calibre\ebooks\pdf\html_writer.py", line 1131, in convert
podofo.Error: PoDoFo is out of memory.
File: C:\t\t\podofo-fwpgsyo1\src\base\PdfWriter.cpp Line: 211
File: C:\t\t\podofo-fwpgsyo1\src\base\PdfRefCountedBuffer.cpp Line: 130 PdfRefCountedBuffer::Resize failed!
Last edited by theducks; 10-04-2021 at 11:07 AM.
Reason: spoilered
You should convert from latex directly to pdf using pdflatex not calibre. But if you do want to use calibre use the 64 bit version to get rid of the out of memory error. Though looking at the log you are going to have other issues because of some of the fonts used.
You should convert from latex directly to pdf using pdflatex not calibre. But if you do want to use calibre use the 64 bit version to get rid of the out of memory error. Though looking at the log you are going to have other issues because of some of the fonts used.
Thanks for your prompt reply. I never expected a reply directly from you.
The book was not generated using LaTeX, rather the topic of the book was 'LaTeX'.
I don't know how to check it, but I think I installed the 64-bit version.
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Al-Imran Abir
The bottom line shows the Calibre version, I can't find anything about whether it is 64-bit or not.
That is the 32 bit version. Notice the [64 bit] is not there.
Just uninstall Calibre. then install the 64 bit version. It will find your settings and libraries. That simple.
With only 1 version installed, it will always check for the 64 bit update.
Is the portable version 32 bit only? I just checked my portable install and it appears to be 32 bit, the [64 bit] was not there. When I went to the portable download page it didn't offer a choice of 32 bit or 64.