View Single Post
Old 01-27-2026, 04:53 PM   #1145
Bluejinx
Junior Member
Bluejinx began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2025
Device: none
Bug Report: "page_template has extra data" error (Japanese Fixed-layout KFX)

I have encountered a conversion error with certain Japanese fixed-layout KFX books (comics). The conversion fails due to unexpected data in the page_template section.

The behavior differs between the CLI and the GUI:
  • CLI (calibre-debug -r "KFX Input"): It reports the error but continues and successfully creates a functional EPUB file.

    Calibre GUI (Standard Conversion): It raises an Exception and the conversion fails entirely.

Environment:
  • Calibre: 8.16.2

    KFX Input Plugin: 2.28.0

    OS: Windows 11

    BOOK ASIN: B0D8SPYCRH , B0D3TCKTRY

Error Message:

Code:
ERROR: Section [ID] page_template has extra data: {$434: $441}
Logs:

(Note: Personal paths and user names have been masked with <USER> and <PATH>.)

1. CLI Execution (Succeeded with error)

Code:
PS <PATH>> calibre-debug -r "KFX Input" -- -e "C:<PATH>\high.kfx" "C:<PATH>\output.epub"

...

Software versions: KFX Input 2.28.0, calibre 8.16.2, Windows-10-10.0.22631-SP0

...

Metadata: ASIN=B0D8SPYCRH, asset_id=CR!9JBQ9ZFWKX47XFZSSR1VZPMPSD8A, ..., yj_fixed_layout=1

Converting C:<PATH>\high.kfx to EPUB

Converting book to EPUB 3

ERROR: Section c7T page_template has extra data: {$434: $441}

Format is fixed layout comic

Conflicting viewport aspect ratios: 34 @ 0.715052 (2000w x 2797h), 1 @ 1.163467 (2000w x 1719h), 1 @ 0.935454 (2000w x 2138h)

Converted book saved to C:<PATH>\output.epub
2. Calibre GUI/Normal Conversion (Failed with Exception)

Code:
InputFormatPlugin: KFX Input running

on C:\Users<USER>\AppData\Local\Temp\calibre-utr6a_ff\dtzrva4c.kfx

...

Metadata: ASIN=B0D3TCKTRY, asset_id=CR!VZCSJ935852C9510AKHYPPWVQHKX, ..., yj_fixed_layout=1

WARNING: This book has a layout that is incompatible with calibre conversion.

Converting book to EPUB 3

ERROR: Section c9E page_template has extra data: {$434: $441}

Format is fixed layout comic

Traceback (most recent call last):

File "calibre_plugins.kfx_input.init", line 113, in convert

Exception: Section c9E page_template has extra data: {$434: $441}

During handling of the above exception, another exception occurred:

...

calibre.ebooks.conversion.ConversionUserFeedBack: {"msg": "Cannot convert...", "level": "error"}
Thank you for developing and maintaining this indispensable plugin. I would appreciate it if you could look into this when you have time.

Since I can successfully convert these books using the CLI, this is not an urgent issue for me. Please feel free to prioritize this at your convenience. Thank you again for your hard work!
Bluejinx is offline   Reply With Quote