![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 540
Join Date: Nov 2024
Device: Kindle Paperwhite 2021
|
EBOK to PDOC Converter
A few days ago, when my Kindle once again deleted my sideloaded ebooks after I turned off the airplane mode, I decided I'd had enough. Since Kindle apparently doesn't delete personal documents, I've created a small tool to convert EBOK metadata to PDOC. I'm sharing it here hoping it'll come in handy for some of you. All you need to do is select the folder with your AZW3 files, choose your conversion options and hit the Scan/Convert button to have all your EBOK files converted to PDOC in no time. Converting multiple files takes just a moment. Enjoy!
|
![]() |
![]() |
![]() |
#2 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15
Karma: 1000000
Join Date: May 2022
Location: United States
Device: Kindle Voyage, Paperwhite, Scribe
|
Thanks for sharing your tool! I was actually just in a the process of writing up a similar program, and this worked like a charm on my azw3 library.
Would you consider creating a version for .kfx files too? |
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 2
Karma: 540
Join Date: Nov 2024
Device: Kindle Paperwhite 2021
|
The KFX format is above my pay grade, I'm afraid. As for AZW3 files, all credit goes to the public domain mobi-header Python library - I've just built a simple GUI for it.
To be honest, I never use KFX for my sideloaded books, simply because it doesn't support hyphenation for my language (Polish). And since I really can't stand books without hyphenation (the layout looks nothing like what I'm used to in paper books), the AZW3 format seems to be my only option. I convert my ebooks in Calibre and then transfer them via USB. Now I'll be adding an extra step of replacing the EBOK tag with PDOC before the transfer. |
![]() |
![]() |
![]() |
#4 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
The KFX Output plugin has option to create PDOC instead of EBOK. No need for external tools.
|
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,338
Karma: 168808725
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I suspect the OP wants a tool to allow changing EBOK to PDOC in existing KFX files without having to convert them
|
![]() |
![]() |
![]() |
#6 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15
Karma: 1000000
Join Date: May 2022
Location: United States
Device: Kindle Voyage, Paperwhite, Scribe
|
For those curious, I ended up writing a bash script to change things to PDOC by editing the "metadata_writer.py" file in the KFX output plugin to set the cde_content_type variable for every file it processes.
I made a loop to go through every kfx file and used the`calibredb embed_metadata` function to change the cdetype without having to waste resources reconverting my library for a single metadata tag. Not quite as simple as hitting a button in a GUI, but still a big timesaver. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: Apr 2025
Location: Chiyoda, Tokyo, Japan
Device: Kindle Oasis (10th Generation)
|
This small app is useful, but some AZW3 files show an error message saying "unpack requires a buffer of 8 bytes". Since Kindle E-readers won't load those files, something seems to be wrong.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are these 'Ebok' files? | abrogard | Calibre | 5 | 07-19-2018 08:50 PM |
PDOC to EBOK without converting? | lowfive | Calibre | 12 | 05-09-2017 08:38 PM |
Which is the best ebok reader for WinCE? | jumpjack | Alternative Devices | 3 | 11-16-2011 09:38 PM |
EBOK FILES | tonyyd | Library Management | 5 | 10-11-2011 03:01 PM |