officeConversionSettings property

OfficeConversionSettings? officeConversionSettings
final

Office conversion settings for documents like .docx, .xlsx, .pptx.

These settings control how Office documents are converted to PDF for viewing. Currently supports configuration for spreadsheet dimensions:

  • spreadsheetMaximumContentHeightPerSheet: Maximum height in millimeters per sheet
  • spreadsheetMaximumContentWidthPerSheet: Maximum width in millimeters per sheet

Example:

PdfWebConfiguration(
  officeConversionSettings: OfficeConversionSettings(
    spreadsheetMaximumContentHeightPerSheet: 500,
    spreadsheetMaximumContentWidthPerSheet: 300,
  ),
)

Implementation

final OfficeConversionSettings? officeConversionSettings;