Nutrient Web SDK
    Preparing search index...

    Type Alias OfficeConversionSettingsStandalone

    *** Standalone Only ***

    Options for exporting the document to PDF from an office format.

    Some properties are only used when exporting specific Office formats, such as XLSX or DOCX.

    const officeDocument = await fetch('example.xlsx').then(response => response.arrayBuffer())
    NutrientViewer.convertToPDF(file, null, {
    splitExcelSheetsIntoPages: true,
    spreadsheetMaximumContentHeightPerSheet: 1000,
    spreadsheetMaximumContentWidthPerSheet: 50,
    })
    const officeDocument = await fetch('example.docx').then(response => response.arrayBuffer())
    NutrientViewer.convertToPDF(file, null, {
    documentMarkupMode: 'original',
    })
    { splitExcelSheetsIntoPages: false, documentMarkupMode: 'noMarkup' }
    
    type OfficeConversionSettings = {
        documentMarkupMode?: DocumentMarkupMode;
        splitExcelSheetsIntoPages?: boolean;
        spreadsheetMaximumContentHeightPerSheet?: number;
        spreadsheetMaximumContentWidthPerSheet?: number;
    }
    Index

    Properties

    documentMarkupMode?: DocumentMarkupMode
    splitExcelSheetsIntoPages?: boolean

    If true, each sheet in the Excel document will be exported as a separate page in the PDF.

    spreadsheetMaximumContentHeightPerSheet?: number

    The maximum height of the content in a single sheet. If the content exceeds this height, it will be split into multiple pages.

    spreadsheetMaximumContentWidthPerSheet?: number

    The maximum width of the content in a single sheet. If the content exceeds this width, it will be split into multiple pages.