[CHANGESET] updated print.m

Ben Abbott bpabbott at mac.com
Thu Apr 23 14:31:17 CDT 2009


On Thursday, April 23, 2009, at 06:51AM, "Ben Abbott" <bpabbott at mac.com> wrote:
>
>On Apr 22, 2009, at 9:53 PM, John W. Eaton wrote:
>
>> On 22-Apr-2009, Ben Abbott wrote:
>>
>> | I've made the switch from ImageMagick's "convert" to Ghostscript. In
>> | addition, support for Windows printing has been added (I don't have
>> | access to a box to test this change, so some assistance would be
>> | helpful), and improved printing on Unix systems. The "help" has been
>> | modified to reflect the changes.
>>
>> OK.  I can't test printing on Windows either, so I hope someone else
>> will do that and report back.
>>
>> | I'll delay pushing to give time for testing. If I get no feedback in
>> | the next day or two, I'll push this change.
>>
>> I haven't tried it, but I have one comment:
>>
>> | +function name = ghostscript_binary ()
>> | +  if (isunix ())
>> | +    name = "gs";
>> | +  elseif (ispc ())
>> | +    name = "gswin23c";
>> | +  endif
>> | +endfunction
>>
>> It seems to me that it would be best if there was some way for users
>> to choose the name of the ghostscript interpreter to use.
>
>Ok, I'll use something like the above to set the default, and add an  
>option for setting the name of the ghostscript binary.
>
>Ben

I check MS's online reference for their command line. The "lpr" command does exist, but has a slighly different syntax.

Updated changeset attached.

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-print_using_gs.patch
Type: application/octet-stream
Size: 9403 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090423/5a0ec6e1/attachment-0001.obj 


More information about the Octave-maintainers mailing list