Menu

#330 pdb load error

All platforms
open
None
4
2014-11-17
2014-11-16
No

I have a lot of pdb files not recognised by CoolReader ("Error while loading document").
These files have sligtly different PalmDOC preamble. They have non zero upper byte of "compression" flag (0x01 there). Otherwise they are perfectly OK.

Could the pdbfmt.cpp (line 71 and forward - struct PalmDocPreamble) be adjusted to ignore upper byte of compression flag? E.g. something like compression&=0xff

Discussion

  • Vadim Lopatin

    Vadim Lopatin - 2014-11-17

    Could you please provide sample file for testing?

     
  • Vadim Lopatin

    Vadim Lopatin - 2014-11-17
    • assigned_to: Vadim Lopatin
    • Priority: 5 --> 4
     
  • Jiri Svoboda

    Jiri Svoboda - 2014-11-17

    sure - can you give me email adress (by PM)? I do not want to post it publicly.

    You can see soulution by calibre https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/pdb/palmdoc/reader.py in function def decompress_text(self, number):

    e.g. compression flag 2 and 258 are same

     

Log in to post a comment.