print.m
Ben Abbott
bpabbott at mac.com
Tue Apr 28 02:49:12 CDT 2009
On Apr 28, 2009, at 3:34 AM, Ivan Sutoris wrote:
> On Tue, Apr 28, 2009 at 12:56 AM, Ben Abbott <bpabbott at mac.com> wrote:
>>
>> On Apr 26, 2009, at 9:49 PM, Ben Abbott wrote:
>>
>>> Michael (or other Windows users),
>>>
>>> If you have an existing eps-file named 'test.eps', does the
>>> following place bounding-box information in the file bbox.txt?
>>>
>>> [s, o] = system ("gswin32c -q -dBATCH -dNOPAUSE -
>>> sDEVICE=bbox
>>> test.eps")
>>>
>>> If not, does this work?
>>>
>>> [s, o] = system ("gswin32c -q -dBATCH -dNOPAUSE -
>>> sDEVICE=bbox
>>> test.eps 2>&1")
>>
>>
>> Michael,
>>
>> I apologize for my impatience, but can you tell me what happens for
>> each of the above?
>>
>> Thanks
>> Ben
>
> I'm running Vista with Ghostscript 8.63. I've tried your commands and
> they both produce output to screen, not to file. I've been able to
> redirect to bbox.txt with command
>
> [s, o] = system ("gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=bbox
> test.eps 2> bbox.txt")
>
> 2> redirects standard error - apparently this where ghostscript
> outputs the bounding box info.
>
> Regards
> Ivan Sutoris
Thanks Ivan.
I was hoping that the command below would redirect stderr to stdout
and return the result in "out"
[s, out] = system ("gswin32c -q -dBATCH -dNOPAUSE -
sDEVICE=bbox test.eps 2>&1")
The link below indicates that this should work
http://support.microsoft.com/kb/110930
On WIndows, does this command return the bounding-box information in
"out"?
Ben
More information about the Bug-octave
mailing list