Package: djvulibre-bin
Version: 3.5.28-2+b1
Severity: normal
Tags: upstream
X-Debbugs-Cc: debbug.djvulibre-...@sideload.33mail.com

A multipage DjVu file had a bookmark for every page (14 pages thus 14
bookmarks in my test). I deleted pages 2 to 14 this way:

  $ for i in {14..2}; do djvm -d file.djvu "$i"; done

It removed the pages but neglected to touch the bookmarks. So when
viewing the document in evince it appeared at first as if no pages
were removed because the bookmarks sidebar still showed 14 bookmarks
to pages 1—14.

It was confusing, but I eventually realised that all but the first
page was in fact deleted as expected. The bookmarks were just dead
links. Clicking on a bookmark to a non-existent page does nothing. It
continues to show the first page as if that is the linked page and
gives no error.

What should happen:

Bookmarks to non-existent pages should probably be removed
automatically. Although we might imagine some obscure scenarios where
someone would want to delete a page and insert a replacement page
while maintaining the bookmark. But that would be a rare case. The
default action should be to remove bookmarks to non-existent pages
while it might be useful to have a

  --preserve-dangling-reference-metadata

option (not necessarily that wordy) to give users the option to retain
otherwise useless and misleading bookmarks.

-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-28-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages djvulibre-bin depends on:
ii  curl            7.88.1-10+deb12u8
ii  libc6           2.36-9+deb12u9
ii  libdjvulibre21  3.5.28-2+b1
ii  libgcc-s1       12.2.0-14
ii  libstdc++6      12.2.0-14
ii  libtiff6        4.5.0-6+deb12u1

Versions of packages djvulibre-bin recommends:
ii  pdf2djvu  0.9.18.2-2+b2

Versions of packages djvulibre-bin suggests:
ii  djview4 [djvu-viewer]                4.12-3+b1
ii  djvulibre-desktop                    3.5.28-2
ii  evince [djvu-viewer]                 43.1-2+b1
ii  okular-extra-backends [djvu-viewer]  4:22.12.3-1
ii  qpdfview-djvu-plugin [djvu-viewer]   0.5.0+ds-2

-- no debconf information

Reply via email to