to_pdf method

to_pdf

Saves the chart to a pdf file.

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

to_pdf

Creates the chart pdf and saves it to a stream.

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

to_pdf

Saves the chart to a pdf file.

def to_pdf(self, file_name, desired_page_width, desired_page_height, h_alignment_type, v_alignment_type):
    ...
ParameterTypeDescription
file_namestrthe pdf file name with full path
desired_page_widthfloatThe desired page width in inches.
desired_page_heightfloatThe desired page height in inches.
h_alignment_typePageLayoutAlignmentTypeThe chart horizontal alignment type in the output page.
v_alignment_typePageLayoutAlignmentTypeThe chart vertical alignment type in the output page.

to_pdf

Creates the chart pdf and saves it to a stream.

def to_pdf(self, stream, desired_page_width, desired_page_height, h_alignment_type, v_alignment_type):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe output stream.
desired_page_widthfloatThe desired page width in inches.
desired_page_heightfloatThe desired page height in inches.
h_alignment_typePageLayoutAlignmentTypeThe chart horizontal alignment type in the output page.
v_alignment_typePageLayoutAlignmentTypeThe chart vertical alignment type in the output page.

See Also