21.5 Setting canvas properties

A canvas.T object provides the following methods to define the information about the output file.

can = canvas.init("foo.pdf")
ar = area.T(...)
can.set_author("Charles Dickens")
can.set_title("A tale of two cities")
ar.draw(can)

set_title( str)
Define the string to be shown in EPS/PDF "Title" field. The default value is the name of the script that creates the EPS/PDF file.

set_author( str)
Set the author string. Unless this method is called, the Author field is not output in EPS or PDF.

set_creator( str)
Define the string to be shown in EPS %%Creator or PDF Producer field. The default value is "pychart".

set_creation_date( str)
Define the string to be shown in EPS/PDF "CreationDate" field. Defalt value of this field is the current time.