to_pdf method

to_pdf(file_name)

Saves the shape to a pdf file.

def to_pdf(self, file_name):
    ...
ParameterTypeDescription
file_namestrthe pdf file name with full path

to_pdf(stream)

Creates the shape pdf and saves it to a stream.

def to_pdf(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe output stream.

See Also