Skip to Content.
Sympa Menu

baslinux - Re: [BL] pdftotext and Links/Lynx browsers

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Neo Sze Wee <neoszewee AT gmx.net>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] pdftotext and Links/Lynx browsers
  • Date: Sat, 7 Jun 2003 10:50:59 +0000

On Sat, May 31, 2003 at 02:02:12PM -0400, keesan2 AT cyberspace.org wrote:
> On Fri, 30 May 2003 jamtat AT mailsnare.net wrote:
>
> > >
> > > Have you had time to check out pdfimage or pdftops?
> > >
> > Check them out how? pdftoimage, I would imagine, makes a scanned pdf
> > image into a .gif or .jpeg or something. Is that right?
>
>
> Most pdf files contain both text and images. pdftotext extracts the text
> part. pdfimage extracts the images as a series of pbm or pnm (monochrome
> or color) images with sequentially numbered file names. You will need to
> read the documentation for the correct command. I have used only the DOS
> version.
>
> There is something out for Windows now called a 'pdf machine' which I
> think means people scan pages and convert them to pdf instead of gif, in
> which case a pdf file might consist of nothing but full-page images. The
> DOS pdfimage program had problems with this format sometimes.
>
> Yes, you will need some image viewer that views pbm and pnm images. I
> don't have one installed, and I don't even have space left to install zgv
> along with these three pdf convertors. I need to put together another
> computer. Does zgv view these formats?
>

Yes.


<$PWD:!># zgv --help
| zgv 5.6 - copyright (C) 1993-2001 Russell Marks.
|
| usage: zgv [options] [dir | file ...]
|
| -A --auto-animate
| automatically animate multiple-image GIFs.
| This greatly limits how such images can be viewed,
| but can be useful for slideshows.
| --auto-mode-fit
| automatically switch modes to suit image size.
| -p --avoid-single-progress
| don't show progress indicator when loading a
| single file from the command-line.
| --black-background
| try to use a black background in the viewer when
| displaying an 8-bit image.
| -b --block-cursor use a blocky outline cursor, which is rather
| unsubtle but more obvious.
| --brightness adjust_val
| specify how much to add to colour values to
| change brightness (default 0).
| --centre (or --center)
| (normally enabled, use --centre=off to disable)
| if *disabled*, don't centre images onscreen.
| --clear-screen-on-exit
| clear text console's contents on exit.
| --col-black "r g b"
| set colour used for `black' (text) in selector;
| RGB values should be in the range 0-63 for this
| and the other colour settings below, and the
| three numbers should be quoted as shown.
| --col-dark "r g b"
| set colour used for lowlights in selector.
| --col-light "r g b"
| set colour used for highlights in selector.
| --col-medium "r g b"
| set colour used for background in selector.
| --col-tagged "r g b"
| set colour used for tagged files in selector.
| --contrast multiplier
| specify how much to multiply colour values by
| to change contrast (default 1.0).
| --delete-single-prompt
| (normally enabled, use --delete-single-prompt=off to
| disable) if *disabled*, don't prompt for confirmation
| when deleting a single file (with the Delete key).
| --delete-tagged-prompt
| (normally enabled, use --delete-tagged-prompt=off to
| disable) if *disabled*, don't prompt for confirmation
| when deleting tagged files (with `D').
| --dither-16col-fast
| (normally enabled, use --dither-16col-fast=off to
| disable) if *disabled*, use (much) slower but
| more accurate dithering in the viewer's 16-colour
| mode.
| --fake-cols (normally enabled, use --fake-cols=off to disable)
| if *disabled*, don't fake extra greyscales and
| colour depth in 8-bit modes.
| --force-fs-16col
| force the use of 16-colour mode for the selector.
| -j --force-viewer-8bit
| force all images to be loaded as 8-bit. Normally
| zgv will load 24-bit images (e.g. colour JPEGs)
| as 24-bit if you have any modes capable of
| displaying it in 15, 16, 24, or 32-bit colour.
| --fs-16col-colour-thumbnails (or --fs-16col-color-thumbnails)
| if using 16-colour mode for the selector,
| show dithered colour thumbnails (rather than mono).
| --fs-ignore-old-pos
| don't recall previous cursor position in a
| directory when returning to it later.
| --fs-magic use a slow, but precise (magic-number-based)
| method to identify picture files to list
| in the selector.
| --fs-perfect-cols
| don't tweak thumbnail colours to make the rest of
| the selector look right.
| --fs-slow-thumbnail-update
| show current cursor position at all times when
| updating thumbnails, which in most cases will
| make it markedly slower.
| --fs-small-text
| use smaller text than usual in the selector.
| --fs-start-mode modespec
| specify initial mode for the selector; the `modespec'
| should be the width, height, and depth in
| quotes, e.g. "640 480 8". Note that the depth
| specified is actually ignored (and forced to 8).
| -t --fs-thick-text
| use bold text in selector, which may be useful
| for those with mildly impaired vision (especially
| when combined with the `-b' option).
| -G --gamma val set gamma adjustment. The default is 1.0, i.e.
| no adjustment. (See info file or man page for
| details, and a discussion of gamma issues.)
| --gnulitically-correct
| GNU has POSIXLY_CORRECT for compatibility with
| silly POSIX misfeatures, and zgv has...
| -i --ignore-errors
| when loading a single file from the command-line,
| ignore (some) errors.
| --jpeg-index-style style
| specify how to read JPEGs when creating
| thumbnails (default 2):
| 1 = the quickest (but this sometimes generates
| rather fuzzy/blocky thumbnails);
| 2 = fairly cautious, but still quite fast;
| 3 = an extremely cautious and slow method.
| -J --jpeg-speed type
| set JPEG speed/quality tradeoff (default 2):
| 1 = floating-point - slow but accurate;
| 2 = slow integer - faster but not as accurate;
| 3 = fast integer - fastest but least accurate.
| -h --help give this usage help.
| --line-text use old line-based text.
| -M --mouse enable mouse support; this uses svgalib's mouse
| configuration, see the libvga.config(5) man page
| for details.
| --mouse-scale scale
| set the ratio of `mouse pixels' to onscreen pixels.
| In effect, sets the mouse speed. Defaults to 16.
| --pcd-res resnum
| set Photo-CD resolution to use, if support was
| enabled at compile-time. (See info file/man page
| for further details.)
| -g --pgm-truecol treat PGM files as 24-bit, ensuring that
| 256 separate greyscales can be shown if a 24-bit
| mode is available.
| --reverse-bc-order
| apply brightness modification before contrast.
| --revert-orient (normally enabled, use --revert-orient=off to disable)
| if *disabled*, orientation (flip/mirror/rotate) state
| is retained between pictures.
| --revert-scale (normally enabled, use --revert-scale=off to disable)
| if *disabled*, scaling is retained between pictures.
| --scrollbar show a scrollbar below the selector.
| --show-xvpics-dir
| show any `.xvpics' directory, so you can view
| thumbnails there even if the pictures they
| represent have been deleted.
| -T --show-tagged show names of tagged files on exit (they're listed
| to stdout).
| -S --slideshow-delay delay
| set the delay (in seconds) for which one picture
| in a slideshow is shown before reading the next.
| The default is 4.
| -l --slideshow-loop
| loop in slideshows `forever' (until you exit).
| -R --slideshow-randomise (or --slideshow-randomize)
| randomise order of pictures in slideshows.
| --viewer-16col-colour (or --viewer-16col-color)
| use a dithered colour display (rather than mono)
| in the viewer's 16-colour mode.
| -m --viewer-start-mode modespec
| specify initial mode for the viewer; the `modespec'
| should be the width, height, and depth in
| quotes, e.g. "640 480 8".
| --visual (normally enabled, use --visual=off to disable)
| if *disabled*, no thumbnails are shown.
| -k --vkludge smooth image when zoom mode is reducing a
| picture to fit the screen, and when in virtual
| modes.
| --version report version number.
| --xzgv-keys remap keys to (mostly) match those used in xzgv.
| -z --zoom fit picture to the full screen size, whatever the
| picture's actual size.
| --zoom-reduce-only
| when zooming, only *reduce* pictures to fit; i.e.
| make big pictures viewable all-at-once while leaving
| small pictures intact.
|
| dir start zgv on a certain directory.
| file ... view (only) the file(s) specified. If more than
| one file is given, the files are viewed as a
| slideshow.
|
| All options are processed after any ~/.zgvrc or /etc/zgv.conf file.
| Most long options (minus the `--') can used in either file with e.g.
| `zoom on'. (But be sure to omit any quoting mentioned above in config
| files.)
|
| On/off settings (such as zoom) are enabled by e.g. `-z' or `--zoom';
| however, the long-option form `--option=off' can be used to disable
| them (needed when they are enabled by default - revert-scale, for
| example - or to override them being enabled in a config file).
|
| (This syntax actually lets you both disable *and* enable options,
| using (for the arg after `=') on/off, y/n, yes/no, or 1/0.)






Archive powered by MHonArc 2.6.24.

Top of Page