[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Print to PDF under Windows [changeset]
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Print to PDF under Windows [changeset] |
Date: |
Sat, 21 Nov 2009 17:42:29 +0900 (JST) |
Hello
I have tested
http://gnuplot.sourceforge.net/development/binaries/
gp43-Nov21_2008-winbin.zip
The gnuplot.exe in this Package does not support pdfcairo.
However it does not any problem to make pdf file with out Ben's patch if the
location of gswin32c.exe
is included in the PATH environmental variable. The EXEC_PATH of octave add
the Octave related PATHs
to prior to the PATH environmental vairable. I cannot find reason why full
path of ghostscript to be
gotten.
Without it, it works without problem.
BTW in the ghostscript manual it is written
**************
The actual executable files, in the gs#.##\bin subdirectory, are:
GSWIN32C.EXE Ghostscript as a command line Windows program. This is usually the
preferred executable.
GSWIN32.EXE 32-bit Ghostscript using its own window for commands
GSDLL32.DLL 32-bit dynamic link library containing most of Ghostscript's
functionality
****************
I do not find any reason why we should use GSWIN32.EXE but not GSWIN32C.EXE.
Octave is win32 console
application so that GSWIN32C.EXE is preferable, I think.
If we use GSWIN32.EXE, we see always GSWIN32.EXE execution flash at each pdf
creation. It would be
annoying, I think.
Regards
Tatsuro
--- Tatsuro MATSUOKA <address@hidden> wrote:
> Hello
>
> Perhaps Ben's patch is better to be applied.
> However it is no effect for pdf printing on octave/MinGW32 on the OctaveForge
> because the
> gnuplot
> bundled supports the pdfcairo terminal and pdf printing seems to be carried
> out by it.
>
> Regards
>
> Tatsuro
>
>
>
> --- Ben Abbott wrote:
>
> >
> > On Nov 20, 2009, at 4:53 PM, Ben Abbott wrote:
> >
> > > On Nov 20, 2009, at 6:07 AM, Michael Goffioul wrote:
> > >
> > >> On Thu, Nov 19, 2009 at 9:45 PM, Ben Abbott <address@hidden> wrote:
> > >>> 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?
> > >>
> > >> I don't get it. The line
> > >>
> > >> [status, output] = system (sprintf ("if exist \"%s\" ( exit /B 1) else
> > >> ( exit /B 0 )", ghostscript_binary));
> > >>
> > >> will check for the existence of "gswin32c" in the current directory.
> > >> First, it should be "gswin32.exe". Second you will never have
> > >> "gswin32c.exe"
> > >> in the current directory when using "print" in normal situation.
> > >>
> > >> Michael.
> > >
> > > Ok. I get it ... sorry for being so dense.
> > >
> > > I'll put together a changeset.
> > >
> > > Ben
> >
> > Michael or other Window users,
> >
> > Can you confirm the attached works?
> >
> > Ben
> >
> > >
> >
> >
> >
>
>
> --------------------------------------
> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> http://pr.mail.yahoo.co.jp/gyao/
>
--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/
- Print to PDF under Windows, Michael Goffioul, 2009/11/19
- Re: Print to PDF under Windows, Ben Abbott, 2009/11/19
- 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
- Re: Print to PDF under Windows [changeset-3], Tatsuro MATSUOKA, 2009/11/22
- Re: Print to PDF under Windows [changeset-4], Ben Abbott, 2009/11/22
- Re: Print to PDF under Windows [changeset-4], Tatsuro MATSUOKA, 2009/11/22
- Re: Print to PDF under Windows [changeset-4], Ben Abbott, 2009/11/22
- Re: Print to PDF under Windows [changeset-4], Tatsuro MATSUOKA, 2009/11/22