Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2018, 05:02 PM   #1
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
Exclamation Error when converting a PDF to any format

For Calibre 3.20.0 on W10 (also happening on Ubuntu):

Converting a 8.8Mb PDF to AZW3 (or MOBI) I get the following error:

... truncating top of log file

Creating KF8 output
Generating in-line ToC
Generating KF8 markup...
Compressing markup...
Creating indices...
Python function terminated unexpectedly
'H' format requires 0 <= number <= 65535 (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 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 1252, in run
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 329, in convert
File "site-packages\calibre\ebooks\mobi\writer8\mobi.py", line 342, in write
struct.error: 'H' format requires 0 <= number <= 65535

It took almost 4 hours to process this 8.8Mb file, and produced over 100,000 1K blank images in each of the 4 log directories (approx. 450,000 1K images). So I'd call that a bug somewhere.

Last edited by dstone; 04-04-2018 at 05:04 PM. Reason: Update
dstone is offline   Reply With Quote
Old 04-04-2018, 11:08 PM   #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: 33,499
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's an error specific to MOBI not any format and its becaue the input document contains too many images for the MOBI format to handle.
kovidgoyal is offline   Reply With Quote
Old 04-06-2018, 07:41 PM   #3
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
OK, I counted. It's a 241 page document with 141 images. What's the limit in MOBI? Please note that I also tried in AZW3, and it also generated 450K image files in the logs (I'm going to stop logging as deleting this takes a while).
dstone is offline   Reply With Quote
Old 04-06-2018, 09:00 PM   #4
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: 33,499
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THe images you see in a PDF viewer are not neccessarily all the actual images in the document. PDF is layered and often has images behind a text layer or vice versa, particularly in PDFs created from page scans.
kovidgoyal is offline   Reply With Quote
Old 04-07-2018, 08:30 AM   #5
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
Kovid,

This is not a scanned book. The structure really is just text and images. I tried converting to AZW3, and got the exact same error. Here's the full text of the error:
Spoiler:

calibre, version 3.20.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Learning Bootstrap 4)

Convert book 1 of 1 (Learning Bootstrap 4)
Conversion options changed from defaults:
linearize_tables: True
cover: u'C:\\Users\\dstone\\AppData\\Local\\Temp\\calibre _t2ti_m\\t2vzf6.jpeg'
verbose: 2
read_metadata_from_opf: u'C:\\Users\\dstone\\AppData\\Local\\Temp\\calibre _t2ti_m\\yzi8t_.opf'
output_profile: 'kindle_pw3'
Resolved conversion options
calibre version: 3.20.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\\dstone\\AppData\\Local\\Temp\\calibre _t2ti_m\\t2vzf6.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 0x00000260E81352E8>,
'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': True,
'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,
'new_pdf_engine': False,
'no_chapters_in_toc': False,
'no_images': False,
'no_inline_navbars': False,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindlePaperWhite3Outpu t object at 0x00000260E81359B0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\dstone\\AppData\\Local\\Temp\\calibre _t2ti_m\\yzi8t_.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_factor': 0.45,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: PDF Input running
on C:\Users\dstone\AppData\Local\Temp\calibre_t2ti_m\ f91iw2.pdf
Converting file to html...
pdftohtml log:
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
link to page 15 link to page 15 link to page 21 link to page 21 link to page 21 link to page 21 link to page 22 link to page 22 link to page 22 link to page 22 link to page 22 link to page 22 link to page 23 link to page 23 link to page 23 link to page 23 link to page 23 link to page 23 link to page 23 link to page 23 link to page 24 link to page 24 link to page 24 link to page 24 link to page 25 link to page 25 link to page 26 link to page 26 link to page 26 link to page 26 link to page 26 link to page 26 link to page 26 link to page 26 link to page 27 link to page 27 link to page 27 link to page 27 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 28 link to page 29 link to page 29 link to page 30 link to page 30 link to page 30 link to page 30 link to page 30 link to page 30 link to page 31 link to page 31 link to page 31 link to page 31 link to page 31 link to page 31 link to page 32 link to page 32 link to page 32 link to page 32 link to page 33 link to page 33 link to page 33 link to page 33 link to page 35 link to page 35 Page-8
link to page 36 link to page 36 link to page 36 link to page 36 link to page 38 link to page 38 link to page 39 link to page 39 link to page 39 link to page 39 link to page 40 link to page 40 link to page 40 link to page 40 link to page 41 link to page 41 link to page 41 link to page 41 link to page 41 link to page 41 link to page 41 link to page 41 link to page 42 link to page 42 link to page 42 link to page 42 link to page 42 link to page 42 link to page 42 link to page 42 link to page 43 link to page 43 link to page 44 link to page 44 link to page 45 link to page 45 link to page 47 link to page 47 link to page 48 link to page 48 link to page 48 link to page 48 link to page 49 link to page 49 link to page 49 link to page 49 link to page 51 link to page 51 link to page 51 link to page 51 link to page 52 link to page 52 link to page 52 link to page 52 link to page 53 link to page 53 link to page 55 link to page 55 link to page 55 link to page 55 link to page 57 link to page 57 link to page 59 link to page 59 link to page 65 link to page 65 link to page 65 link to page 65 link to page 66 link to page 66 link to page 67 link to page 67 link to page 68 link to page 68 link to page 70 link to page 70 link to page 71 link to page 71 Page-9
link to page 74 link to page 74 link to page 75 link to page 75 link to page 75 link to page 75 link to page 77 link to page 77 link to page 77 link to page 77 link to page 78 link to page 78 link to page 79 link to page 79 link to page 79 link to page 79 link to page 79 link to page 79 link to page 79 link to page 79 link to page 80 link to page 80 link to page 80 link to page 80 link to page 80 link to page 80 link to page 80 link to page 80 link to page 82 link to page 82 link to page 83 link to page 83 link to page 84 link to page 84 link to page 84 link to page 84 link to page 85 link to page 85 link to page 86 link to page 86 link to page 87 link to page 87 link to page 89 link to page 89 link to page 91 link to page 91 link to page 91 link to page 91 link to page 91 link to page 91 link to page 92 link to page 92 link to page 92 link to page 92 link to page 93 link to page 93 link to page 96 link to page 96 link to page 96 link to page 96 link to page 97 link to page 97 link to page 98 link to page 98 link to page 101 link to page 101 link to page 102 link to page 102 link to page 102 link to page 102 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 link to page 103 Page-10
link to page 104 link to page 104 link to page 104 link to page 104 link to page 105 link to page 105 link to page 105 link to page 105 link to page 106 link to page 106 link to page 106 link to page 106 link to page 108 link to page 108 link to page 108 link to page 108 link to page 109 link to page 109 link to page 109 link to page 109 link to page 110 link to page 110 link to page 110 link to page 110 link to page 112 link to page 112 link to page 112 link to page 112 link to page 113 link to page 113 link to page 114 link to page 114 link to page 115 link to page 115 link to page 115 link to page 115 link to page 116 link to page 116 link to page 117 link to page 117 link to page 118 link to page 118 link to page 118 link to page 118 link to page 119 link to page 119 link to page 119 link to page 119 link to page 119 link to page 119 link to page 120 link to page 120 link to page 121 link to page 121 link to page 122 link to page 122 link to page 124 link to page 124 link to page 124 link to page 124 link to page 125 link to page 125 link to page 126 link to page 126 link to page 127 link to page 127 link to page 128 link to page 128 link to page 128 link to page 128 link to page 129 link to page 129 link to page 131 link to page 131 link to page 131 link to page 131 link to page 132 link to page 132 link to page 134 link to page 134 link to page 134 link to page 134 Page-11
link to page 136 link to page 136 link to page 136 link to page 136 link to page 137 link to page 137 link to page 137 link to page 137 link to page 138 link to page 138 link to page 139 link to page 139 link to page 140 link to page 140 link to page 142 link to page 142 link to page 144 link to page 144 link to page 145 link to page 145 link to page 146 link to page 146 link to page 147 link to page 147 link to page 149 link to page 149 link to page 150 link to page 150 link to page 151 link to page 151 link to page 153 link to page 153 link to page 156 link to page 156 link to page 158 link to page 158 link to page 161 link to page 161 link to page 164 link to page 164 link to page 167 link to page 167 link to page 168 link to page 168 link to page 169 link to page 169 link to page 170 link to page 170 link to page 171 link to page 171 link to page 172 link to page 172 link to page 174 link to page 174 link to page 174 link to page 174 link to page 175 link to page 175 link to page 176 link to page 176 link to page 176 link to page 176 link to page 178 link to page 178 link to page 179 link to page 179 link to page 179 link to page 179 link to page 180 link to page 180 link to page 182 link to page 182 link to page 182 link to page 182 link to page 182 link to page 182 link to page 184 link to page 184 Page-12
link to page 185 link to page 185 link to page 185 link to page 185 link to page 186 link to page 186 link to page 187 link to page 187 link to page 187 link to page 187 link to page 188 link to page 188 link to page 189 link to page 189 link to page 189 link to page 189 link to page 190 link to page 190 link to page 190 link to page 190 link to page 191 link to page 191 link to page 194 link to page 194 link to page 195 link to page 195 link to page 196 link to page 196 link to page 197 link to page 197 link to page 198 link to page 198 link to page 199 link to page 199 link to page 199 link to page 199 link to page 200 link to page 200 link to page 200 link to page 200 link to page 201 link to page 201 link to page 202 link to page 202 link to page 203 link to page 203 link to page 204 link to page 204 link to page 206 link to page 206 link to page 207 link to page 207 link to page 208 link to page 208 link to page 208 link to page 208 link to page 209 link to page 209 link to page 209 link to page 209 link to page 210 link to page 210 link to page 211 link to page 211 link to page 212 link to page 212 link to page 212 link to page 212 link to page 213 link to page 213 link to page 213 link to page 213 link to page 214 link to page 214 link to page 216 link to page 216 link to page 216 link to page 216 Page-13
link to page 217 link to page 217 link to page 220 link to page 220 link to page 220 link to page 220 link to page 221 link to page 221 link to page 223 link to page 223 link to page 225 link to page 225 link to page 226 link to page 226 link to page 227 link to page 227 link to page 227 link to page 227 link to page 227 link to page 227 link to page 227 link to page 227 link to page 228 link to page 228 link to page 228 link to page 228 link to page 229 link to page 229 link to page 230 link to page 230 link to page 230 link to page 230 link to page 231 link to page 231 link to page 231 link to page 231 link to page 231 link to page 231 link to page 232 link to page 232 link to page 232 link to page 232 link to page 232 link to page 232 link to page 233 link to page 233 link to page 233 link to page 233 link to page 233 link to page 233 link to page 233 link to page 233 link to page 234 link to page 234 link to page 234 link to page 234 link to page 234 link to page 234 link to page 235 link to page 235 Page-14
link to page 21 link to page 32 link to page 52 link to page 75 link to page 102 Page-15
link to page 119 link to page 179 link to page 199 link to page 227 link to page 32 Page-16
Page-17
Page-18
Page-19
Page-20
Page-21
Page-22
Page-23
Page-24
Page-25
Page-26
link to page 32 Page-27
Page-28
Page-29
Page-30
Page-31
Page-32
link to page 21 Page-33
Page-34
Page-35
Page-36
Page-37
Page-38
link to page 21 Page-39
link to page 21 Page-40
Page-41
Page-42
Page-43
Page-44
Page-45
Page-46
Page-47
Page-48
Page-49
Page-50
Page-51
Page-52
Page-53
Page-54
Page-55
Page-56
Page-57
Page-58
Page-59
Page-60
Page-61
Page-62
Page-63
Page-64
Page-65
Page-66
Page-67
Page-68
Page-69
Page-70
Page-71
Page-72
Page-73
Page-74
Page-75
Page-76
Page-77
Page-78
Page-79
Page-80
Page-81
Page-82
Page-83
link to page 32 link to page 32 Page-84
Page-85
Page-86
Page-87
Page-88
Page-89
Page-90
Page-91
Page-92
Page-93
Page-94
Page-95
Page-96
Page-97
Page-98
Page-99
Page-100
Page-101
Page-102
Page-103
Page-104
Page-105
Page-106
Page-107
Page-108
Page-109
Page-110
Page-111
Page-112
Page-113
Page-114
Page-115
Page-116
Page-117
Page-118
Page-119
Page-120
Page-121
Page-122
Page-123
Page-124
Page-125
Page-126
Page-127
Page-128
Page-129
Page-130
Page-131
Page-132
Page-133
Page-134
Page-135
Page-136
Page-137
Page-138
Page-139
Page-140
Page-141
Page-142
Page-143
Page-144
Page-145
Page-146
Page-147
Page-148
Page-149
Page-150
Page-151
Page-152
Page-153
Page-154
Page-155
Page-156
Page-157
Page-158
Page-159
Page-160
Page-161
Page-162
Page-163
Page-164
Page-165
Page-166
Page-167
Page-168
Page-169
Page-170
Page-171
Page-172
Page-173
Page-174
Page-175
Page-176
Page-177
Page-178
Page-179
Page-180
Page-181
Page-182
Page-183
Page-184
Page-185
Page-186
Page-187
Page-188
Page-189
Page-190
Page-191
Page-192
Page-193
Page-194
Page-195
Page-196
Page-197
Page-198
Page-199
Page-200
Page-201
Page-202
Page-203
Page-204
Page-205
Page-206
Page-207
Page-208
Page-209
Page-210
Page-211
Page-212
Page-213
Page-214
Page-215
Page-216
Page-217
Page-218
Page-219
Page-220
Page-221
Page-222
Page-223
Page-224
Page-225
Page-226
Page-227
Page-228
Page-229
Page-230
Page-231
Page-232
Page-233
Page-234
link to page 192 link to page 22 link to page 22 link to page 22 link to page 23 link to page 23 link to page 23 link to page 146 link to page 223 link to page 224 link to page 145 link to page 146 link to page 209 link to page 210 link to page 27 link to page 112 link to page 134 link to page 84 link to page 87 link to page 89 link to page 84 link to page 90 link to page 87 link to page 85 link to page 161 link to page 162 link to page 158 link to page 174 link to page 176 link to page 164 link to page 97 link to page 97 link to page 96 link to page 91 link to page 91 link to page 92 link to page 48 link to page 41 link to page 43 link to page 42 link to page 41 link to page 47 link to page 45 link to page 46 link to page 42 link to page 42 link to page 44 link to page 42 link to page 49 link to page 200 link to page 41 link to page 134 link to page 200 link to page 201 link to page 49 link to page 21 link to page 22 link to page 22 link to page 128 link to page 37 link to page 65 link to page 66 Page-235
link to page 65 link to page 24 link to page 36 link to page 36 link to page 212 link to page 214 link to page 115 link to page 116 link to page 174 link to page 174 link to page 38 link to page 38 link to page 119 link to page 216 link to page 217 link to page 125 link to page 126 link to page 124 link to page 119 link to page 185 link to page 189 link to page 185 link to page 22 link to page 149 link to page 153 link to page 154 link to page 151 link to page 152 link to page 156 link to page 157 link to page 150 link to page 151 link to page 147 link to page 148 link to page 197 link to page 195 link to page 194 link to page 196 link to page 228 link to page 227 link to page 234 link to page 231 link to page 231 link to page 234 link to page 230 link to page 232 link to page 233 link to page 232 link to page 232 link to page 229 link to page 231 link to page 230 link to page 228 link to page 233 link to page 233 link to page 228 link to page 121 link to page 137 link to page 138 link to page 132 link to page 191 link to page 192 link to page 190 link to page 208 link to page 186 link to page 209 link to page 153 link to page 154 link to page 171 link to page 82 link to page 83 link to page 80 Page-236
link to page 79 link to page 80 link to page 79 link to page 80 link to page 79 link to page 83 link to page 79 link to page 186 link to page 216 link to page 92 link to page 93 link to page 94 link to page 75 link to page 76 link to page 77 link to page 23 link to page 21 link to page 111 link to page 202 link to page 208 link to page 108 link to page 109 link to page 82 link to page 83 link to page 127 link to page 104 link to page 105 link to page 39 link to page 221 link to page 222 link to page 29 link to page 42 link to page 80 link to page 79 link to page 68 link to page 67 link to page 70 link to page 71 link to page 66 link to page 67 link to page 22 link to page 53 link to page 52 link to page 53 link to page 55 link to page 55 link to page 56 link to page 57 link to page 59 link to page 61 link to page 62 link to page 64 link to page 65 link to page 53 link to page 54 link to page 58 link to page 103 link to page 104 link to page 139 link to page 140 link to page 134 link to page 132 link to page 128 link to page 131 link to page 132 link to page 130 link to page 128 link to page 131 link to page 23 link to page 24 link to page 27 link to page 232 link to page 29 link to page 232 link to page 35 link to page 35 link to page 30 link to page 28 link to page 30 Page-237
link to page 31 link to page 28 link to page 29 link to page 30 link to page 28 link to page 27 link to page 40 link to page 40 link to page 27 link to page 27 link to page 28 link to page 151 link to page 152 link to page 103 link to page 105 link to page 116 link to page 21 link to page 25 link to page 110 link to page 111 link to page 109 link to page 110 link to page 109 link to page 137 link to page 138 link to page 136 link to page 137 link to page 137 link to page 138 link to page 138 link to page 108 link to page 140 link to page 141 link to page 24 link to page 21 link to page 189 link to page 38 link to page 38 link to page 24 link to page 24 link to page 42 link to page 142 link to page 144 link to page 145 link to page 137 link to page 80 link to page 147 link to page 148 link to page 79 link to page 77 link to page 78 link to page 185 link to page 106 link to page 22 link to page 212 link to page 103 link to page 176 link to page 177 link to page 108 link to page 109 link to page 108 link to page 106 link to page 107 link to page 106 link to page 98 link to page 213 link to page 22 link to page 79 Page-238
link to page 213 link to page 206 link to page 179 link to page 180 link to page 77 link to page 171 link to page 173 link to page 174 link to page 170 link to page 169 link to page 168 link to page 167 link to page 168 link to page 33 link to page 27 link to page 33 link to page 33 link to page 26 link to page 33 link to page 34 link to page 35 link to page 207 link to page 208 link to page 121 link to page 213 link to page 48 link to page 176 link to page 175 link to page 103 link to page 204 link to page 126 link to page 189 link to page 188 link to page 186 link to page 189 link to page 188 link to page 187 link to page 103 link to page 122 link to page 121 link to page 137 link to page 138 link to page 132 link to page 23 link to page 102 link to page 26 link to page 26 link to page 91 link to page 26 link to page 102 link to page 230 link to page 116 link to page 78 link to page 36 link to page 36 link to page 22 link to page 51 link to page 28 link to page 199 link to page 204 link to page 200 link to page 137 Page-239
link to page 130 link to page 80 link to page 71 link to page 72 link to page 77 link to page 79 link to page 86 link to page 85 link to page 25 link to page 25 link to page 26 link to page 40 link to page 39 link to page 26 link to page 26 link to page 30 link to page 31 link to page 30 link to page 31 link to page 103 link to page 114 link to page 117 link to page 115 link to page 116 link to page 112 link to page 113 link to page 114 link to page 118 link to page 115 link to page 168 link to page 232 link to page 232 link to page 211 link to page 131 link to page 220 link to page 32 link to page 38 link to page 35 link to page 33 link to page 36 link to page 232 link to page 185 link to page 182 link to page 184 link to page 183 link to page 225 link to page 104 link to page 210 link to page 211 link to page 106 link to page 107 link to page 140 link to page 141 link to page 209 link to page 213 link to page 213 link to page 213 link to page 212 link to page 208 link to page 210 link to page 211 link to page 201 link to page 202 link to page 203 link to page 124 Page-240
link to page 227 link to page 139 link to page 140 link to page 25 Page-241
Retrieving document metadata...
Generating manifest...
Rendering manifest...
Parsing all content...
Parsing index.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 119854 items of level: p_1
p_1 left margin stats: Counter({u'0': 119854})
p_1 right margin stats: Counter({u'0': 119854})
Cleaning up manifest...
Trimming unused files from manifest...
Creating AZW3 Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Creating KF8 output
Generating in-line ToC
Generating KF8 markup...
Compressing markup...
Creating indices...
Python function terminated unexpectedly
'H' format requires 0 <= number <= 65535 (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 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 1252, in run
File "site-packages\calibre\ebooks\conversion\plugins\mobi_ou tput.py", line 329, in convert
File "site-packages\calibre\ebooks\mobi\writer8\mobi.py", line 342, in write
struct.error: 'H' format requires 0 <= number <= 65535

Last edited by theducks; 04-07-2018 at 10:26 AM. Reason: Wrap HUGE post in SPOILER
dstone is offline   Reply With Quote
Old 04-07-2018, 12:01 PM   #6
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,521
Karma: 4190000
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro & Kindle 3 - Retired: Clie UX50, T415, ...
Quote:
Originally Posted by dstone View Post
Kovid,

This is not a scanned book. The structure really is just text and images.
The "book" wasn't originally a PDF. It may have been text and images in the original format and the PDF may look like just text and images, but that doesn't mean that the utility that generated the PDF didn't convert some text entities, or even all of the text, into images.
dwig is offline   Reply With Quote
Old 04-07-2018, 12:43 PM   #7
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
The book is text with embedded images. It's not a book of images. If you hover over the text, the text cursor appears for seelecting text. If you hover over an image, you can select the image. If I edit the book with a PDF editor, it's text with embedded images, as described above.
dstone is offline   Reply With Quote
Old 04-07-2018, 01:16 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 52,391
Karma: 47520109
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
You have a Paperwhite. Convert to KF8 (AZW3) and forget Mobi even exists.
JSWolf is offline   Reply With Quote
Old 04-07-2018, 01:51 PM   #9
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by JSWolf View Post
You have a Paperwhite. Convert to KF8 (AZW3) and forget Mobi even exists.
Already tried (see previous posts).
dstone is offline   Reply With Quote
Old 04-07-2018, 01:56 PM   #10
dstone
Junior Member
dstone began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2017
Device: Kindle Paperwhite
And I tried converting to HTML and using that, but that just messes up the format and I still don't get a table of contents.
dstone is offline   Reply With Quote
Old 04-07-2018, 07:29 PM   #11
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,095
Karma: 10563148
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@dstone - in the Read this before Posting PDF Questions sticky at the top of this sub-forum a number of PDF issues are addressed.

At one time I was converting a lot of PDFs (dozens a day). After investigating several alternatives I settled on doing the initial convert with Mobipocket's Creator, and then used calibre to convert the resultant PRC either to EPUB or to RTF. My main objective was to have a consistent process over lots of PDFs rather than an optimal process for one PDF.

BR
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a PDF to another format and then to e-mail Heathside Boy Library Management 4 04-28-2012 05:46 PM
Converting from PDF to Kindle format Phil Clark Conversion 5 08-07-2011 11:31 AM
error in converting pdf bobcdy Conversion 7 03-17-2011 01:14 PM
error converting from fb2 format jomaweb Calibre 3 04-23-2010 05:41 AM
Converting PDF to Sony format estral Sony Reader 22 04-29-2009 06:57 AM


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


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