[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Print to PDF under Windows
From: |
Ben Abbott |
Subject: |
Re: Print to PDF under Windows |
Date: |
Thu, 19 Nov 2009 16:45:56 -0500 |
On Thursday, November 19, 2009, at 03:39PM, "Michael Goffioul" <address@hidden>
wrote:
>Hi,
>
>In print.m, I see the following pieces of code:
>
>... (line 194)
> elseif (ispc ())
> if (~isempty (getenv ("GSC")))
> persistent ghostscript_binary = getenv ("GSC");
> else
> persistent ghostscript_binary = "gswin32c";
> endif
>...
>... (line 265)
> elseif (ispc ())
> [status, output] = system (sprintf ("if exist \"%s\" ( exit /B 1
>) else ( exit /B 0 )", ghostscript_binary));
> have_ghostscript = (status ~= 0);
> endif
>...
>
>Now, let's say GSC is not defined. How is this supposed to work?
>The "system" call will check for the existence of a file named
>"gswin32c" in the current directory. This will never work... or am
>I missing something?
>
>Wouldn't it be better to default to
>
> persistent ghostscript_binary = file_in_path(EXEC_PATH, "gswin32c.exe");
>
>Michael.
I'd expect both to work. Unless the the windows binary bundles ghostscript with
octave. Is that the case?
Ben
- Print to PDF under Windows, Michael Goffioul, 2009/11/19
- Re: Print to PDF under Windows,
Ben Abbott <=
- Re: Print to PDF under Windows, Michael Goffioul, 2009/11/20
- Re: Print to PDF under Windows [changeset], Benjamin Lindner, 2009/11/21
- Re: Print to PDF under Windows [changeset-2], Ben Abbott, 2009/11/21
- Re: Print to PDF under Windows [changeset-2], Benjamin Lindner, 2009/11/21
- Re: Print to PDF under Windows [changeset-2], Ben Abbott, 2009/11/21
- Re: Print to PDF under Windows [changeset-3], Ben Abbott, 2009/11/22