Mobileread
Calibre - KPF to Epub
#1  BillSmart 07-04-2021, 06:34 AM
I want to load my .kpf file (which I've created on Kindle Create from a .docx file, making a lot of formatting changes) and convert it to a .epub. And, if possible, other file types -- but .epub is my #1 goal.

I have loaded Calibre with the three plugins I've read that are necessary to perform this conversion: KFX Input, KFX Output, and DeDRM.

When I use Add Books to add my .kpf file, it is loaded as a .docx file. I expected it to be loaded as a .kpf or .kfx file. Anyway, the loaded file is a .docx file, so when I convert that file to a .epub, it just converts the .docx file, not the .kpf file.

What am I doing wrong?

...Bill!
Calibre PlugIns.jpg 
Reply 

#2  jhowell 07-04-2021, 10:14 AM
Only the KFX Input plugin is required for conversion from KPF to EPUB. (DeDRM is only needed for books purchased from Amazon and KFX Output produces KFX format.)

A KPF file produced using Kindle Create contains a copy of the original Word document that you started with. By default calibre will extract that when you import a KPF file, giving you the original content without any of the edits made using Kindle Create. You need to disable that behavior by going to Preferences, Plugins, and expanding the File Type category. Then highlight the KPF Extract plugin and press the Enable/Disable Plugin button so that the plugin entry is grayed out.

Once the KFX Input plugin has been installed and the KPF Extract plugin has been disabled you can again import your KPF file into calibre and then use the Convert Books function to convert it to EPUB.
Reply 

#3  BillSmart 07-06-2021, 12:03 AM
I disabled the DeDRM plugin. I could not disable the KFX Output plugin, so I removed it.

I disabled the KPF Extract plugin.

I closed and restarted Calibre, used Add Books to add my kpf file. And, Voila!, it was loaded as a .kpf!

Thanks a lot!!!!

Reply 

#4  WmPitcher 02-04-2022, 08:48 PM
@jhowell I registered just to say thank you for helping me solve this.

Gotta love KC! /s
Reply 

#5  jhowell 02-04-2022, 09:00 PM
Quote WmPitcher
@jhowell I registered just to say thank you for helping me solve this.
YouÂ’re welcome.

Quote WmPitcher
Gotta love KC! /s
Yeah. To me it seems like they got it about halfway done and then just stopped.
Reply 

#6  evrim 03-21-2023, 09:20 AM
Hi there!

Evrim here! I am trying to convert a kpf file to epub, I have the KPX input plugin installed but I get this error: Exception: This book has a layout that is incompatible with calibre conversion. For best results use the KFX Input plugin CLI for conversion. Any chance you can help me?
Reply 

#7  jhowell 03-21-2023, 10:21 AM
Quote evrim
Evrim here! I am trying to convert a kpf file to epub, I have the KPX input plugin installed but I get this error: Exception: This book has a layout that is incompatible with calibre conversion. For best results use the KFX Input plugin CLI for conversion. Any chance you can help me?
Some Kindle books, such as comics and print replica, use fixed-layout (pre-formatted pages) which is not supported by calibre for conversion. Using the command line interface (CLI) of the KFX Input plugin for conversion will bypass calibre's conversion. Documentation of the CLI can be found in The first post of the KFX Input plugin thread.

The result may have limited usefulness. It is going to be a fixed-layout EPUB containing Kindle-specific markup.
Reply 

Today's Posts | Search this Thread | Login | Register