Andreas Klemm on Thu, 22 Mar 2001 23:15:48 +0100 (CET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: apsfilter: unsupported file type '/tmp/apsfilter1561/header1: PostScript document' (fwd)


On Wed, Mar 21, 2001 at 09:43:48PM -0600, Dave Uhring wrote:
> I finally got it print PostScript.  Replaced #!/bin/sh with 
> #!/usr/bin/bash.  Replaced awk with gawk.  Modified unpack routine as 
> follows:
> 
> unpack()
> {
>     local HEADER FILE_TYPE unpacker
> 
>     DEPTH=$(($DEPTH + 1))
>     HEADER="$APS_TMPDIR/header$DEPTH"
>     dd bs=1k count=16 > "$HEADER" 2> /dev/null
> 
>     FILE_TYPE=`file "$HEADER" | awk '{print $2}'`
>     FILE_TYPE=`echo $FILE_TYPE | tr [:upper:] [:lower:]`
> 
> 
>     unpacker=
>     case "$FILE_TYPE" in
> 
> Have tested only with .ps file so far, but it works on that.

diff -u please and Cc: to the list.

	Andreas ///

-- 
Andreas Klemm
Apsfilter Homepage                  http://www.apsfilter.org
Support over mailing-lists (only!)  http://www.apsfilter.org/support
Mailing-list archive                http://www.apsfilter.org/Lists-Archives

PGP signature