\begin{David Kempe}
> > Not a good idea if it's an automated process.. I don't think I can get my
> > Linux box to uncross it's arms and type in a word processor for me...
> >
> > I basically need to run a command like
> >
> > sendfax -d 12345678 -f bitmap.g3 -f texttogo.g3 (or texttogo as text)..
> >
> > Nothing does this.. I don't mind passing the graphic and text to a
> > script/process to add them together to make one big G3 file but I
> > don't see
> > how it can be done...
>
> George that really sounds like you are up for some hardcore postscript
> coding.
bah. unless you want to do your own line-breaking code, it sounds like
you're up for some LaTeX.
LaTeX is not hard, everyone should get over this fear of non-wysiwyg
document layout.
eg, for this example:
(completely untested)
\documentclass[a4paper]{article}
\usepackage{floatflt}
\usepackage[dvips]{graphicx}
\begin{document}
\begin{floatingfigure}[l]{10cm}
% the "10cm" above is the width you want the space for
% your image to have
\includegraphics[width=9cm]{image.eps}
% include "image.eps" and scale it to width 9cm
% some other formats are allowed too
\end{floatingfigure}
\input{mytext} % read text from the file "mytext"
\end{document}
then make a shell wrapper that does this:
#!/bin/sh -e
phonenum=$1
image=$2 # must be .eps in this example
text=$3 # can be plain text file, with some caveats
tmpdir=${TMPDIR:-/tmp}/mytmp.$$
mkdir $tmpdir
trap "rm -rf $tmpdir" EXIT
ln -s $2 $tmpdir/image.eps
ln -s $3 $tmpdir/mytext
ln -s $ABOVETEXFILE $tmpdir/fax.tex
cd $tmpdir
latex --interaction=nonstopmode fax.tex
dvips -f < fax.dvi | \
gs -q -dNOPAUSE -dBATCH -sDEVICE=faxg3 -sOutputFile=- | \
sendfax -d $phonenum
## don't know necessary sendfax command to send a g3 on stdin
now whats really so hard about that?
--
- Gus
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug