How to convert an XLSM file to PDF using Document Engine

To convert an XLSM file to PDF using Document Engine, follow the steps below.

  1. Modify the contentType property: In your Build API instructions schema, set the contentType property explicitly to recognize the XLSM file as an XLSX file.

  2. Override the default MIME type detection: Document Engine uses a MIME type allow list to determine the appropriate conversion engine. To ensure the correct processing, override the default detection by setting FilePart > contentType: “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”.

  3. Route the file to Nutrient .NET SDK: By setting the contentType correctly, Document Engine directs the XLSM file to Nutrient .NET SDK, which efficiently handles the conversion.

  4. Generate the PDF: Once routed to the correct engine, Document Engine processes the file and converts it into a PDF format, preserving the document’s integrity and formatting.