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.
-
Modify the
contentType
property: In your Build API instructions schema, set thecontentType
property explicitly to recognize the XLSM file as an XLSX file. -
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”. -
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. -
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.