View Single Post
Old 08-31-2021, 08:06 PM   #464
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,094
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by pauloney View Post
Is there a source for information on the KPF file format, as generated by Kindle Create (instead of downloads from Amazon) ? I am trying to create .kpf files from PDF using a Linux workflow -- instead of having to insert the PDF into a Windows or Mac interactive application.
The only aspect of KPF that Amazon has documented is the Ion format in which much of the content is encoded. Documentation for that is here: Amazon Ion. However that is only one small part of KPF. There is no actual documentation of KPF format as far as I know.

I was able to reverse engineer the format enough to write my KFX Input and Output plugins mostly by trial and error. However I don't know anywhere close to enough about it to generate a KPF file except by using the Amazon applications that can produce it, Kindle Create and Kindle Previewer.

The Kindle Previewer has a command-line interface that can be invoked by other programs to produce KPF files. It is documented in the Kindle Previewer User Guide. That is what my KFX Output plugin uses to produce KPF. But that only works for reflowable books based on either EPUB or MS Word as a source format. There is no provision for generating Fixed Layout KPF based on PDF.
jhowell is offline   Reply With Quote