11-27-2019, 05:23 AM | #1 |
Member
Posts: 15
Karma: 10
Join Date: Jul 2017
Device: iPad
|
EPUB -> PDF fail: Invalid Page Number: 0 (Error Code:1)
Hi,
I try to convert a epub which contains mainly pictures to a pdf document (without loss). But I get the following error message: Spoiler:
I do not know what "invalid page number: 0 (Error Code:1)" could hint at. Is there any way to change the page numbers in a epub or something? Any tipps would be much much appreciated!! Thanks a bunch in advance!! Last edited by theducks; 11-27-2019 at 10:26 AM. Reason: changed log to spoiler |
11-27-2019, 08:55 AM | #2 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Am going t need the EPUB file to help you.
|
Advert | |
|
11-27-2019, 10:57 AM | #3 | |
Wizard
Posts: 2,129
Karma: 8796706
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Have you tried using the ebook viewer print function?
bernie Quote:
|
|
11-28-2019, 12:12 AM | #4 |
Member
Posts: 15
Karma: 10
Join Date: Jul 2017
Device: iPad
|
I tried with similar result:
[...] Creating PDF Output... 67% PDF Output-Erweiterung wird ausgeführt Converting input as a text based book... The cover image has an id != "cover". Renaming to work around bug in Nook Color 68% Parsed all content for markup transformation 70% Completed markup transformation 90% Rendered all HTML as PDF 91% Verweise zu PDF-Inhalt hinzugefügt 93% Hinzufügen von Kopf- und Fußzeilen Failed to run pipe worker with command: from calibre.gui2.viewer.printing import do_print; do_print() Python function terminated unexpectedly 1 (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 189, in main File "<string>", line 1, in <module> File "site-packages\calibre\gui2\viewer\printing.py", line 187, in do_print File "site-packages\calibre\ebooks\conversion\cli.py", line 401, in main File "site-packages\calibre\ebooks\conversion\plumber.py", line 1275, in run File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 176, in convert File "site-packages\calibre\ebooks\conversion\plugins\pdf_out put.py", line 243, in convert_text File "site-packages\calibre\ebooks\pdf\html_writer.py", line 1201, in convert File "site-packages\calibre\ebooks\pdf\html_writer.py", line 1088, in add_header_footer File "site-packages\calibre\ebooks\pdf\html_writer.py", line 1061, in format_template KeyError: 1 I think the epub file has some issues. @kovidgoyal: I will send you the file - via PM? |
11-28-2019, 01:23 AM | #5 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's a fixed layout EPUB it uses absolute positioning to display the images. These are not supported in calibre, but I wil make a change so that it at least does not fail, though the results will not be nice.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Error: Invalid Page | van604 | Sony Reader | 2 | 08-13-2013 11:17 PM |
PRS-T2 invalid page error in transferring kokobooks | trocchietto | Sony Reader | 2 | 09-21-2012 11:49 AM |
PDF to ePub: Page Error on Sony 600 | Hogan | Calibre | 6 | 10-23-2010 02:00 AM |
PRS-900 Help! Invalid Page Error | cbnash | Sony Reader | 5 | 01-26-2010 10:50 AM |
Error code number 1 | asocias | Calibre | 1 | 12-12-2009 04:24 PM |