sagiegurari / fax4j

Java fax library.
Apache License 2.0
23 stars 7 forks source link

Does this still work on Mac? #55

Open andrewslack opened 2 years ago

andrewslack commented 2 years ago

AFAICT the lp command does not support faxTo which the code assumes.

Looking at your Mac OSX SPI test:

lp -d testp3 -o phone=123123123 faxTo=\"TARGET_NAME\" \"test_file\"

It relies on faxTo being supported and I am not seeing that when I look at the man pages for lp on the latest OSX (12.1 Monterrey)

NAME
       lp - print files

SYNOPSIS
       lp [ -E ] [ -U username ] [ -c ] [ -d destination[/instance] ] [ -h hostname[:port]
       ] [ -m ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -s ] [ -t title ]
       [ -H handling ] [ -P page-list ] [ -- ] [ file(s) ]
       lp [ -E ] [ -U username ] [ -c ] [ -h hostname[:port] ] [ -i job-id ] [ -n
       num-copies ] [ -o option[=value] ] [ -q priority ] [ -t title ] [ -H handling ] [ -P
       page-list ]
sagiegurari commented 2 years ago

ya, it has been around 10 years since i wrote it. guess its no longer a valid option for macs. you can however use other non native options if they are relevant. but if you are looking for a native mac fax api, this would probably not be a good choice as i stopped maintaining this library years ago.