08-26-2023, 04:48 PM | #586 | ||||
Junior Member
Posts: 7
Karma: 123456
Join Date: Aug 2023
Location: BC, Canada
Device: Kindle Scribe
|
Quote:
Quote:
Quote:
Quote:
In the mean time I am trying to write a program that can convert from PDFs to write-on-able KFX files without going through the Kindle Create software (which for now means I am trying to create my own KPF files from scratch that contain the metadata to correctly map PDF pages) so that I can put them through the KFX Output plugin (which I realize still relies on Kindle Previewer for conversion, but I eventually want to write my own KPF to KFX converter as well.) I will be publishing all code on GitHub as soon as I have something that works a little bit. Is there any documentation outside of this thread and the code of the KFX plugins you have (which is the closest I could find to documentation on the KFX and KPF formats other than a rough overview) that could help me? |
||||
08-26-2023, 06:29 PM | #587 | |||||
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Quote:
That cropping data is currently not handled by the KFX Input plugin. Something will need to be done about that. Quote:
Quote:
Quote:
|
|||||
Advert | |
|
08-27-2023, 11:04 PM | #588 | ||
Junior Member
Posts: 7
Karma: 123456
Join Date: Aug 2023
Location: BC, Canada
Device: Kindle Scribe
|
Quote:
Quote:
I will be posting very soon, I have a mostly working serializer for KRDS files (I know this might sound pointless, and I know there is already a Python deserializer) but I want to have something that can go both ways and in a strongly typed and compiled language (Rust in this case). I am also using this as a sort of warm up project to serializing and deserializing KDF, KPF and KFX files. I also have hopes that I might be able to create annotations on my computer and send them to the kindle in a way that it can recognize them (rather than just hardcoding them into a PDF or book.) |
||
08-28-2023, 09:10 AM | #589 | |
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
One thing to be aware of is that due to different aspect ratios between the scribe screen and cropped PDF pages there are typically parts of the page in the margins that cannot be annotated because they are off screen. Alternatively there can be places on the screen where annotations can be drawn that will be outside of the page boundaries of the original PDF. I look forward to seeing what you come up with. |
|
09-01-2023, 09:24 AM | #590 |
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Version 2.4.0 - 01 Sep 2023
Use the KFX section name as the XHTML and SVG file names in the EPUB produced when converting Scribe notebook pages. This will make it possible to associate handwritten annotations with the book content being annotated using information from the .yjr file of the book. Ignore page cropping data found in some print replica books. (Fixes "ERROR: resource xx has extra data: {$48: 160.0, $49: 137.0, $50: 160.0, $47: 137.0}") |
Advert | |
|
09-01-2023, 02:35 PM | #591 |
Grand Sorcerer
Posts: 6,520
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Cool. Looking forward to what @willeml comes up with.
|
09-08-2023, 08:16 AM | #592 |
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Version 2.5.0 - 08 Sep 2023
Fix bug introduced in previous plugin release for some print replica books. (Fixes "ERROR: Exception checking book consistency: KeyError('$564')") Fix handling of print replica books that reuse PDF pages. Handle a variant of hero image formatting used in some KFX books. (Fixes "ERROR: Unexpected combination of alpha (0.1796875) and opacity (1) for color rgba(255,255,255,0.180)") Fix incorrect formatting applied to headings for some books. Allow small variations in brush sizes in strokes contained in Scribe notebooks. |
09-17-2023, 12:16 AM | #593 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2023
Device: Kindle
|
@jhowell So I'm able to import/DeDRM a KFX-zip file that contains guided view from Comics and if I side load to my iPhone it works perfectly. Just curious, outside of KFX, is there any other way the Kindle iOS/Android app will recognize guided view? I read earlier that you could convert kfx to epub, import the epub to Kindle Previewer and then export the azw3 from previewer and that would also have guided view, but only for hardware e-readers?
Also, I currently run the cli to convert KFX to epub, then tried to convert that epub to ZIP and rename to CBZ but the comic pages are all out of order, like page 2 is actually page 6 or something. epub looks fine though. Any idea how I could get the right page order for cbz? Thanks a lot for your work in all these plugins btw, its great to have guided view with my backups |
09-17-2023, 08:43 AM | #594 | ||
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Quote:
To fix this you can open the EPUB in the calibre ebook editor, select all of the images, right click & choose "Bulk rename the selected files", and in the dialog box that pops up select "Rename files according to their book order". I'm glad it is of use. |
||
10-26-2023, 12:04 AM | #595 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2023
Device: Android
|
I am experiencing some odd behavior from this plugin. When I import a DRM'd kfx-zip, the decryption appears to succeed, but it still packs the added book into another kfx-zip. The file sizes are different, so some change occurred. Inside the new kfx-zip, the "decrypted" .res files are all about 100k smaller, and the .azw is about 3x larger. My calibre-debug output during import is in B0CGLB24FR.txt.
Another oddity happens when I attempt to unpack or convert this kfx-zip to either PDF or epub. I get the output in the B0CGLB24FR_conv.txt attachment (AttributeError: 'NoneType' object has no attribute 'PdfReader'). This issue was said to be fixed with this latest version, but it's possible the input is bad since it didn't convert to a plain kfx. The preview (it denies cloud reader) appears to be print replica, but I don't know for sure. I can't tell if this is an issue with DeDRM or this plugin, or if these are one issue or two separate ones. But I can say with certainty that my current combination of plugins worked on another new-format DRM (B0xxx ASIN) book. I'd greatly appreciate any assistance with narrowing down the issue. |
11-05-2023, 02:51 AM | #596 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2012
Device: none
|
kfx to PDF
I had tried kfx to pdf command line of kfx input plugin for print replica book
after conversion to PDF, pagination and bookmarks of PDF file not present as Compare to Original PDF file Do we have any solution for it ?? Thanks |
11-05-2023, 04:07 PM | #597 | |
Grand Sorcerer
Posts: 6,553
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Amazon’s print replica KFX format includes the original PDF from the publisher split into individual PDF files of a few pages each. The plugin recombines them into a single PDF but it does not restore the links that were broken when the original file was split up. Doing that would be a major undertaking. |
|
11-15-2023, 03:25 PM | #598 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Oct 2021
Device: Kindle 4
|
I just want to thank you for this plugin. Now that amazon is pushing kfx on everything (even manga) and while dedrm still works to remove the kfx drm, this is a great option and it's working great.
Let's hope it will stay this way for a long long time. Of course I'm using a lot more the kobo store, but sometimes I got some amazon gift cards to use and be able to still backup my ebooks is great. |
11-16-2023, 02:32 PM | #599 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2012
Device: none
|
The plugin is working very well in most of the aspects.
|
11-23-2023, 05:18 AM | #600 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2023
Device: Android tablet
|
I do not understand this at all.
Open a command/terminal window in your OS and change to the folder where the KFX file was saved. Use "--pdf" option of the KFX Input plugin CLI to extract PDF content. Eg: calibre-debug -r "KFX Input" -- --pdf "my book file.kfx" I have a KPF file from Kindle Create that I want to convert to EPUB while keeping all of the format. Can you explain this in details? I'm very new, sorry. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Input] Microsoft Doc Input Plugin | igi | Plugins | 76 | 06-28-2019 04:47 AM |
KFX conversion, transfer back to library issue. | shoelesshunter | Conversion | 2 | 08-22-2017 06:40 PM |
[Conversion Input] LaTeX Formulas Input Conversion Plugin | sevyls | Plugins | 0 | 03-23-2015 05:52 AM |
[Input Plugin] DOCX Input | SauliusP. | Plugins | 42 | 06-05-2013 04:01 AM |
Looking For MHT Input Conversion Plugin | FlooseMan Dave | Plugins | 4 | 03-30-2010 05:52 PM |