save_as_pdf method

save_as_pdf

Saves the document in PDF format.

def save_as_pdf(self, out_pdf_file_path, options):
    ...
ParameterTypeDescription
out_pdf_file_pathstrAn output PDF file path.
optionsaspose.page.xps.presentation.pdf.PdfSaveOptionsOptions for saving the document in PDF format.

save_as_pdf

Saves the document in PDF format.

def save_as_pdf(self, stream, options):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe stream to write the output PDF file to.
optionsaspose.page.xps.presentation.pdf.PdfSaveOptionsOptions for saving the document in PDF format.

See Also