title: How to export an Excel file as PDF from a Flutter mobile app
body: <p>I am able to generate an Excel file from my mobile Flutter app, using the <a href="https://pub.dev/packages/spreadsheet_decoder" rel="nofollow noreferrer">spreadsheet decode package</a>. I am also able to save it, on the device as an Excel file.</p>
  <p>What I need now is:</p>
  <ol>
  <li><p>Export the Excel workbook as a PDF. An app like Excel can do it, but it has a special exporting form where the user has to specify if he wants to export only the currently displayed sheet, or the whole workbook. And also scaling, if overflowing columns should be scaled to fit, or overflowing rows scaled to fit. Which makes exporting a spreadsheet to PDF quite tricky. Only Excel, Google Sheets app and specialized widgets seem able to do it. I need a third party plugin that could do it. Syncfusion seems to have a widget that can do it for .net and <a href="https://www.syncfusion.com/excel-framework/net" rel="nofollow noreferrer">xamarin apps</a>, but for <a href="https://www.syncfusion.com/flutter-widgets/excel-library" rel="nofollow noreferrer">Flutter</a>, at the time I am writing this, it only allows generating the spreadsheet.</p>
  </li>
  <li><p>Ideally I would also like my user to be able to view or preview the spreadsheet from my app. No need for him to be able to edit the spreadsheet at this time, just be able to read it.</p>
  </li>
  </ol>
  <p>Again this is currently available for other mobile frameworks like Xamarin.</p>
  <p>Is there a widget or package of component currently available on the market that can do that for Flutter?</p>