|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2026
Device: K4PC
|
Could this be a new version of KFX?
Hello to everyone, I recently purchased a Kindle Print Replica ebook on Amazon.
It's been about 5 years since I last used K4PC so I had to update from a dusty old v1.16.0 (44025) on an old laptop to 2.8.0 (70980) on a new laptop to be able to view the newer file format. I've also disabled autoupdates in the new version. I also had to update Calibre (portable) from v1.48 to v9.5. I also installed the DeDRM v10.0.18 and KFX Input v2.29.0 plugins. I've been attempting to using KFXKeyExtractor282 to extract the key for this new ebook but I see the following error: BookOpen error 25 DRM envelope refers to an unknown voucher Has anyone seen this before? Could this be a new version of KFX in the wild? This particular ebook was published in Jan 2026 if this is relevant. Is there anything I can do to remedy this issue? In the meantime, I moved my attention to an older title from my modest collection. I was able to extract the secrets from one of the old Print Replica books I purchased back in 2020 and was able to import the KFX file and extract the PDF successfully using Calibre. So that at least proves I have a working setup. side note: One observation I thought I'd mention here is that the original PDF was produced with MSWord 2013 and the new download of this contains a PDF produced by pypdf. The file size has gone from ~5MB to ~25MB which seems ridiculous to me. Is this normal for a PDF Print Replica KFX files or an outlier? Thanks in advance, 5aLIVe |
|
|
|
|
|
#2 | ||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,281
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
Without knowing the specific book is is difficult to say more about it. |
||
|
|
|
| Advert | |
|
|
|
|
#3 | ||
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2026
Device: K4PC
|
Quote:
Quote:
This particular book I recently downloaded for testing has an .azw file extension and includes 9 files with .azw.res files. Am I correct in saying that these files in essence are separate PDF files each containing pages from the book and need to be joined together to create a complete document? Can you tell me if it is possible to restructure the PDF using some tool to restore the file size close to the original document? I'd be grateful if you could advise me on this. What do you need to know regrading this specific book? I'll try to help as best I can. Thankyou, 5aLIVE. |
||
|
|
|
|
|
#4 | |||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,281
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
If you add up the total size of .azw.res files along with the .azw file it should give you a rough idea of the size of the content Amazon is providing for that book. Quote:
If you provide the ASIN of the book (ten character ID starting with "B") I may be able to tell more by looking at the product listing and the the free sample for it, as long as it is available in my region. |
|||
|
|
|
|
|
#5 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2026
Device: K4PC
|
Thankyou very much for the detailed additional information, so my initial thoughts regarding Amazon reformatting books may well prove to be true afterall.
I can confirm that the sum of .azw and azw.res files is a fair estimate of the size of the extracted PDF. The ASIN for this book is B076ZX6CGB which I see matches a folder name in My Kindle Contents folder. This book is available in the US as the author is a fellow American. Hopefully the sample file will give you the information you need. |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,281
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
That book in KFX format has been split by Amazon into 26 individual PDF files, each holding up to 20 pages. The main reason that the split PDFs total to a size larger than the original is that they each contain a copy of the fonts that they use, which are many in this book. The recombining of the individual files back into a single PDF done by KFX Input using pypdf does not eliminate duplicate fonts and so the resulting PDF contains multiple duplicate fonts, making up most of its size. I will research options to better handle this situation for a future KFX Input plugin release. Thanks for bringing it to my attention. |
|
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jhowell: There is existing code in calibre for combining PDF files while removing duplicate fonts, used by its own PDF output. Dont know how suitable that is for you, but worth a look. IIRC the functions are called merge_fonts() and dedup_type3_fonts()
|
|
|
|
|
|
#8 | ||||
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2026
Device: K4PC
|
Quote:
Quote:
Quote:
Quote:
You are most welcome and my thanks to you for continuing to develop such a useful plugin. Kind regards, 5aLIVE. |
||||
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,281
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Thanks. I will look into that.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fixed page KPS to KFX or blank PDF to KFX conversion? | jackm8 | Conversion | 6 | 02-20-2026 02:02 PM |
| KFX to EPUB conversion can break page-list, while KFX Input plugin works consistently | mallomar | Calibre | 11 | 07-20-2025 10:25 PM |
| Kindle for Mac Version 7.32.2 and KFX | bml075 | Conversion | 5 | 12-06-2024 06:45 PM |
| Last Kindle Fire OS Version without KFX support | Fat Abe | Amazon Fire | 5 | 12-26-2022 08:00 PM |
| LinkFonts won't work on KFX books on OS version higher than 5.8.7.0.1 | wxkingcisc | Kindle Developer's Corner | 4 | 10-25-2017 07:05 AM |