Follow this article to convert numbers file to PDF in C#. It has details to set the IDE, a list of steps, and a sample code for developing a numbers to PDF converter in C#. Details will also be shared to generate the custom PDF file based on your requirements.
Steps to Convert Numbers to PDF in C#
- Set the environment to use Aspose.Cells for .NET to convert a Numbers file to PDF
- Load the license to create a watermark-free output
- Load the source Numbers file into the Workbook object
- Create the PdfSaveOptions optionally to customize the output PDF file
- Set the desired properties in the PdfOptions object
- Save the resultant Workbook as PDF using the custom settings
These steps summarize the process to change the file format from MAC Numbers to PDF in C#. The simplest process is to load the source Numbers file into the Workbook object and save it as a PDF using the Save method in the Workbook object. Optionally, you may create a PdfSaveOptions object and set its parameters to generate the desired output in the PDF file.
Code to Numbers File to PDF in C#
This sample code demonstrates how to convert a Numbers file to PDF in C#. The PdfSaveOptions class contains a SheetSet property that can be set to define the selected sheet numbers in the loaded Numbers file that you want to render in the output PDF file. There are many other parameters as well that can be set to customize the PDF, such as setting bookmarks, exporting custom properties for the PDF, displaying the document title, and setting grid line color to name a few.
This article has taught us the process to convert a Number file to PDF in C#. To convert units from ml to oz, refer to the article on Convert ml to oz in C#.