Skip to Content.
Sympa Menu

baslinux - [BL] simple doc to png convertor

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] simple doc to png convertor
  • Date: Sun, 24 Apr 2005 17:34:22 +0000 (UTC)

I used a DOS port of wvware to extract the png from a doc file that consists only of one embedded png, produced by a scanner.

Viewed with less, the png file starts with <89>PNG. The doc file has a lot of <FF) and @^ and then <89>PNG. At the end it has more <FF> and @^ and then something about WORD.

I could probably just use a text editor to manually chop off the beginning and end of this sort of doc file instead of wvware, but can someone suggest a script which would delete all characters before <89>PNG

The png file ends with IEND<AE>B`<82>. The WORD file continues with many pages of @^ (to encourage you to get a larger hard drive?) and <FF> and then the names of the two people working at that office repeatedly, some comments on what is in the document that they probably added, and various mentions of Microsoft Word 9.0. So I could also just chop that off.

<82> is presumably a hex character and perhaps a shell script would need to refer to it differently. Pico shows a file starting in a small dark box and ending in this same box plus Spanish upside-down question mark.
I included the IEND in case the <AE>etc. part occurred elsewhere.

Antiword does fine with text WORD files so the above could for my purposes substitute for wvware and be a lot smaller. (Like pbmtolj instead of gs to print my own scanner output). It would also be library independent.

It would not be difficult to edit one file manually with e3 or pico but people send me collections of them.

This would be a handy script to use with netpbm instead of wvware.

keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




Archive powered by MHonArc 2.6.24.

Top of Page