Package: gscan2pdf
Version: 0.9.29-1
Severity: wishlist

If I delete pages, or run pages through processors, such as unpaper,
gscan2pdf creates new temporary files but does not remove the old
ones (which are no longer referenced from the session file).
I understand this is necessary for undo functionality. However,
given that each PNM file takes up several dozens of megabytes, it
would be nice if gscan2pdf offered the functionality to remove those
files no longer needed (thereby voiding the ability to undo).

Right now, I work around it using the following command in the
temporary directory:

  (sed -rne 's,^[[:space:]]+filename[[:space:]]+.+/(.+),-o -name \1 -prune,p' 
session; echo '-o -name \*.pnm -print0') | xargs find . -size 0 -print0 | xargs 
-0 rm --

but this is not without problems, because the session file does not
seem to get updated after running e.g. unpaper over a page. The best
way to trigger a rewrite of the session file seems to be renumbering
all pages with ctrl-r.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gscan2pdf depends on:
ii  imagemagick                  7:6.5.8.3-1 image manipulation programs
ii  libconfig-general-perl       2.44-1      Generic Configuration Module
ii  libforks-perl                0.33-1      forks - emulate threads with fork
ii  libgtk2-ex-simple-list-perl  0.50-1.1    A simple interface to Gtk2's compl
ii  libgtk2-imageview-perl       0.05-1      Perl bindings for the GtkImageView
ii  liblocale-gettext-perl       1.05-6      Using libc functions for internati
ii  libpdf-api2-perl             0.73-1      module for creating or modifying P
ii  librsvg2-common              2.26.0-1    SAX-based renderer library for SVG
ii  libsane-perl                 0.03-1      Perl bindings for the SANE (Scanne
ii  libset-intspan-perl          1.13-2      Manages sets of integers
ii  libtiff-tools                3.9.2-1     TIFF manipulation and conversion t
ii  perl-modules [libarchive-tar 5.10.1-8    Core Perl modules
ii  perlmagick                   7:6.5.8.3-1 Perl interface to the ImageMagick 
ii  sane-utils                   1.0.20-10   API library for scanners -- utilit

Versions of packages gscan2pdf recommends:
ii  djvulibre-bin                 3.5.22-7   Utilities for the DjVu image forma
ii  gocr                          0.46-2.1   A command line OCR
ii  libgtk2-ex-podviewer-perl     0.18-1     Perl Gtk2 widget for displaying Pl
ii  sane                          1.0.14-9   scanner graphical frontends
ii  tesseract-ocr                 2.04-1     Command line OCR tool
ii  unpaper                       0.3-1      post-processing tool for scanned p
ii  xdg-utils                     1.0.2-6.1  desktop integration utilities from

gscan2pdf suggests no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to