This quick tutorial guides how to convert Numbers file to PDF in Python. It explains the process to develop a Numbers to PDF converter in Python. It shares the details to customize the output PDF file using the PdfSaveOptions class object.
Steps to Change Numbers File to PDF in Python
- Set the environment to use Aspose.Cells for Python via Java to convert the Numbers file
- Import the required classes and modules and start the JVM
- Initialize the license to get watermark-free output
- Load the Numbers file into the Workbook class object
- Create the PdfSaveOptions class object to control the output PDF file format
- Use the above save option to select the desired sheets
- Save the loaded workbook as a PDF using the custom settings
These steps summarize the process to convert Number to PDF in Python. Import the necessary modules and classes, start JVM, load the license, and load the Numbers file into the Workbook class object. Create the PdfSaveOptions object, set the sheet indices that you want to render to PDF, and finally save the Numbers file as a PDF with the custom settings.
Code to Convert a Numbers File to PDF in Python
This sample code demonstrates the process to change the file format from Mac Numbers to PDF in Python. Using the PdfSaveOptions, you can set the default font, producer metadata, print page type, and graphics optimization. Options are also available for security settings, permissions, and retractions in the output PDF file.
This guide assists in converting the Numbers file to PDF. To convert unit from ml to oz, refer to the article Convert ml to oz in Python.