<< pdfconcat pdfconcat

pdfconcat >> pdfconcat > xsapp2pdf

xsapp2pdf

export and append graphics to a multipage PDF

Syntax

xsapp2pdf(win_num, file_name [,orientation])
xsapp2pdf(hdl, file_name [,orientation])

Arguments

win_num

an integer, ID of the Figure to export.

hdl

handle of the Figure or Frame to export.

file_name

a string, name of the exported file.

If the extension is not provided, it is going to be automatically added.

orientation

an optional string, with possible values 'portrait' or 'landscape'. The default value is 'portrait'.

Description

xsapp2pdf appends the display of a Figure or a Frame to a PDF file. If the file does not exist, it is created.

Examples

t = linspace(0,2*%pi,256);
scf(0)
for i=1:10
    clf
    plot(t,sin(i*t))
    xsapp2pdf(0,"file.pdf")
end

See also


Report an issue
<< pdfconcat pdfconcat