OneNoteNotebookPdfConverterExtensions
OfficeIMO.OneNote.Pdf
Converts offline OneNote notebooks to semantic PDF documents.
Inheritance
- object
- OneNoteNotebookPdfConverterExtensions
Methods
public static OfficeConversionReport SaveAsPdf(OneNoteNotebook notebook, string path, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Writes the OneNote notebook as a PDF file and returns the complete conversion report.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- path string
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static OfficeConversionReport SaveAsPdf(OneNoteNotebook notebook, Stream stream, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Writes the OneNote notebook as PDF to a caller-owned stream and returns the complete conversion report.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- stream System.IO.Stream
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic static async Task<OfficeConversionReport> SaveAsPdfAsync(OneNoteNotebook notebook, string path, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the OneNote notebook as a PDF file and returns the complete conversion report.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- path string
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static async Task<OfficeConversionReport> SaveAsPdfAsync(OneNoteNotebook notebook, Stream stream, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the OneNote notebook as PDF to a caller-owned stream and returns the complete conversion report.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- stream System.IO.Stream
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public static PdfDocument ToPdf(OneNoteNotebook notebook, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Converts the OneNote notebook to a PDF model.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic static PdfDocument ToPdf(OneNoteNotebook notebook, OneNotePdfExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #Converts the OneNote notebook and returns its completed conversion findings.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic static async Task<OfficeConversionResult<PdfDocument>> ToPdfAsync(OneNoteNotebook notebook, OneNotePdfExportOptions? options = null, CancellationToken cancellationToken = default) #Converts the OneNote notebook, returning the model and report together.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- options OfficeIMO.OneNote.Pdf.OneNotePdfExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionResult<PdfDocument>>