sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.75k stars 1.74k forks source link

Support for AZW4 #1315

Open R-Usher opened 4 years ago

R-Usher commented 4 years ago

In general AZW4 is a PDF in mobi wrapper, see here: https://wiki.mobileread.com/wiki/AZW4 It is displayed properly by SumatraPDF when you change extension to PDF, so its support could be added to the program.

R-Usher commented 4 years ago

You can download and test azw4 file from here: https://1drv.ms/f/s!AKm4ZaWdL2tfgi8

GitHubRulesOK commented 4 years ago

@R-Usher Interesting there is about 5MB of unwanted overheads in that AZW4 file which MuPDF will attempt to strip out, this suggests it is NOT simply a renamed PDF but one that has been optimised internally :=) image

I would personally recommend that AZW and AZW1 AZW3 without DRM can usually be loaded into the e-book interface (like .mobi) However since AZW4 / KD8 appear to have additional garbage it may be best to run them through a "regulator" like MuPDF first.

P.S. a Side comment on related problem There was a similar issue with your "NO COVER" file as the cover page was significantly different to the other pages When that first page was adjusted to match the others the file behaved well.

kjk commented 4 years ago

This is indeed .pdf file wrapped inside .mobi format. mupdf is able to ignore the .mobi wrapper and find PDF content but this is not reliable.

I'll keep it open to add proper unwrapping.

R-Usher commented 4 years ago

OK, I will test new daily builds.

kjk commented 4 years ago

Note: .awz4 is not yet supported. This is just a note to look into supporting it properly.