I'm trying to circumvent horrible Scribe pdf rendering engine by just embedding .pdf files into .kfx to use it's slightly less horrible rendering engine. I'm wondering what's the purest way to achieve that, with as little processing as possible done to files.
Kindle's Send to Kindle does it's job well, omitting covers and thumbnails, but it's online, going through Amazon, so I'm looking at different options. Using Calibre and it's PDF input and KFX's output plugin, gives me readable KFX files that have large margins, that I assume from long files, went to from pdf to epub and then to KFX. I can't find a way to change anything in input or output options.
I assume the solution is going the route of Command Line Interface (CLI) of KFX Output plugin as documented in https://www.mobileread.com/forums/sh...d.php?t=272407, but for the life of me I can't get that to work. Any help would be appreciated.
I figured all my problems. I'm sure this all will sound obvious to most people here, but I did crash my head against this problem for a whole day now, so it may possible help someone in the future:
PDF to KFX
Using Kindle Create, Calibre, and Command Line Interface (CLI) of KFX Output Plugin
First make sure all programs are installed properly.
Kindle Create: (Used to create KFS out of PDF)
https://www.amazon.com/Kindle-Create/b?node=18292298011
Kindle Preview: (Needed by KFX Output Plugin)
https://www.amazon.com/Kindle-Previe...de=21381691011
Calibre: (Calibre Portable may not work)
https://calibre-ebook.com/download
KFX Output Plugin: (It can be installed from within Calibre, Preferences: Plugins: Get New Plugins: KFX Output: Install)
https://www.mobileread.com/forums/sh...d.php?t=272407 (Best to read all thread, especially Command Line Interface (CLI) section of that thread)
Optional test:
Quote:
Open command prompt or windows power shell in windows to test if Calibre and KFX Output Plugin are properly installed. (Right click on Windows start button: Windows PowerShell: type in: 'calibre-debug' without ' and press enter
If you get this message Calibre is installed properly:
Quote:
Module readline not available.
Welcome to the interactive calibre shell!
Use exit to quit
>>>"
|
Type 'exit' to go back to normal command prompt.
Now to test KFX Output plugin type this in command prompt:
Type 'calibre-debug -r "KFX Output"' without ' but with "
If you get following message it's installed properly:
Quote:
Software versions: KFX Output 2.3.1, calibre 6.29, Windows-10-10.0.19045-SP0
KFX Output plugin help is available at https://www.mobileread.com/forums/sh...d.php?t=272407
usage: calibre-debug -r "KFX Output" -- [-h] [-a ASIN] [-c] [-d] [-p PAGES] [-q] [-t] [-l] infile [outfile]
calibre-debug -r "KFX Output" --: error: the following arguments are required: infile
|
|
— Create KFS file out of PDF using Kindle Create:
Open Kindle Create. file: new project; select Print Replica; upload your own .PDF file; after Kinde Create does it thing click Export button in top right corner of the program. Save KFS file that it creates to a folder.
— Convert KFS to KFX using Calibre
Open command prompt in the folder where KFS file is located. (one way to do this:
https://www.lifewire.com/open-comman...folder-5185505)
Type: '
calibre-debug -r "KFX Output" -- "NAMEOFYOURFILE.kpf" "NAMEOFYOURFILE.kfx" -d' without ' into the command prompt with NAMEOFYOURFILE replaced by the name of your KFS file.
Quote:
Examples:
calibre-debug -r "KFX Output" -- test.kpf test.kfx -d
calibre-debug -r "KFX Output" -- random_test.kpf random_test_output.kfx -d
calibre-debug -r "KFX Output" -- "Ed Greenwood - Volo's Guide to Baldur's Gate (AD&D Forgotten Realms)-Wizards of the Coast (2000).kpf" "Ed Greenwood - Volo's Guide to Baldur's Gate (AD&D Forgotten Realms)-Wizards of the Coast (2000).kfx" -d
|
It will create KFX file next to your KPF file. You should get message "Successfully converted to KFX" at the end of the process.
- " " must be used for names of files with space in it, otherwise it's not needed.
- Copy paste works in the command prompt, and is useful with long names of files.
- -d command prompt is used to generate Create personal document (PDOC) instead of book (EBOK). Without -d, thumbnails will not display in reader. I'm not certain if there are any drawbacks of using it instead of creating (EBOK) files regarding this use.
Now you can sideload that KFX file to your Kindle. It will show first image in the document as cover when device is turned off, and it will show a thumbnail in library view.