SaveAsPDFFile

Modified in version 5.0.4

SaveAsPDFFile ( fileName ;​ fileFlag ;​ creatorType ;​ title ;​ subject ;​ author )

Argument Type Range Default Note
fileName str 1..1000 (required) Max. 1000 chars.
fileFlag int[] 1..3 replace
creatorType str 4..4 "????" Ignored
title str 0..1000 "" Max. 1000 chars.
subject str 0..1000 "" Max. 1000 chars.
author str 0..1000 "" Max. 1000 chars.
Examples

SaveAsPDFFile("Chart.pdf")

SaveAsPDFFile("Graphs/Graph_A.pdf")

SaveAsPDFFile("/Volumes/Macintosh HD/users/jane/plots/plot_01.pdf")

SaveAsPDFFile("C:/Users/john/plots/plot_01.pdf")

SaveAsPDFFile("~/Desktop/Plots/Plot_01.pdf";​replace;​;​"MyTitle";​"MySubject";​"Author")

SaveAsPDFFile("~/Desktop/images.pdf";​3) /* Append drawing to file "images.pdf" */

SaveAsPDFFile("~/Desktop/images.pdf";​3 18) /* Insert drawing before page 18.  */

Description

The SaveAsPDFFile() function is set up exactly the same as the SaveAsPNGFile() function. In addition, an optional title, subject and author can be entered.

Starting with xmCHART 5.0.4, it is also possible to append or insert the created drawing to an already existing PDF document. When fileFlag = 3, the drawing is appended to the PDF file, by adding an optional page number the drawing is inserted before the entered page number.

Scroll to Top