octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating pdf documentation images with Octave


From: Marco Atzeri
Subject: Re: Creating pdf documentation images with Octave
Date: Wed, 29 Sep 2010 06:18:40 +0000 (GMT)

--- Mar 28/9/10, bpabbott <address@hidden> ha scritto:


On Sep 28, 2010, at 04:38 PM, Rik <address@hidden> wrote:

9/28/10

Ben,

Sometime ago we switched away from using Octave to generate the pdf images
for the documentation to using ghostscript to render the eps into pdf
format. This was due to problems in the printing backend at the time.
Have those issues been resolved and can we switch back?

I just sample checked a few of the images generated by plotimages.m in
doc/interpreter and they seem to be created correctly. Currently the eps
and png formats are created from Octave and the pdf by the Makefile via
ghostscript, but it would be nice to have the documentation printing be
unified with everything produced by Octave.

--Rik

It should be possible to produce the pdf images using Octave. Using either the gnuplot, or fltk backend, a pdf image can be produced by ...

print -dpdfwrite somename.pdf

please gnuplot as default. Printing from fltk is still a problem on cygwin


This command will produce a tmp eps-file and call gs to convert it to a pdf-file. The size of the pdf image will correspond to the figure property values, paperposition(3:4).

The size may also be included by adding the "-SXSIZE,YSIZE" option. In this case the paperposition property is ignored.

print "-S640,480" -dpdfwrite somename.pdf

Also, if the size option is included it is possible to produce pdf directly.

print "-S640,480" somename.pdf

The resolution defaults to 150 dpi (to be consistent with Matlab's default for image resolution).

Ben

Marco



reply via email to

[Prev in Thread] Current Thread [Next in Thread]