Name

xs2pdf — save graphics to a PDF file.

Calling Sequence

xs2pdf(win_num,filen [,orientation])

Parameters

win_num

integer scalar .

filen

string, file name.

orientation

optional character, with possible values 'p' (portrait) or 'l' (landscape). The default value is 'p'.

Description

xs2pdf saves the recorded graphics of the window win_num to file filen in PDF syntax. Note that filen must not have extension.

Examples

 
scf(0);
plot2d();
//PDF export
filename='foo'; // ! no extension
xs2pdf(0,filename);
  

See Also

set_posfig_dim, toprint, printfigure, xs2bmp, xs2gif, xs2jpg, xs2png, xs2ppm, xs2eps, xs2svg, xs2ps, xs2fig, xs2emf