---
title: "XLSM to PDF conversion in Document Engine"
canonical_url: "https://www.nutrient.io/guides/document-engine/knowledge-base/xlsm-to-pdf-conversion/"
md_url: "https://www.nutrient.io/guides/document-engine/knowledge-base/xlsm-to-pdf-conversion.md"
last_updated: "2026-05-14T21:57:26.840Z"
description: "Convert XLSM files to PDF using Document Engine. Learn how to ensure successful spreadsheet conversions with simple steps."
---

# 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](https://www.nutrient.io/api/reference/document-engine/upstream/#tag/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](https://www.nutrient.io/guides/dotnet.md), 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.
---

## Related pages

- [Monitoring Document Engine](/guides/document-engine/knowledge-base/monitoring.md)
- [hash_mismatch error](/guides/document-engine/knowledge-base/hash-mismatch-error.md)
- [How to fix 'Unknown CA' SSL errors in document uploads](/guides/document-engine/knowledge-base/remote-url-certificates.md)
- [Remote document storage](/guides/document-engine/knowledge-base/remote-document-storage.md)
- [Signing service not available](/guides/document-engine/knowledge-base/signing-service-not-available.md)
- [Fix PDF download issues with NGINX reverse proxy](/guides/document-engine/knowledge-base/unable-to-download-pdf-with-nginx-reverse-proxy.md)

