M-Files REST API Download Issue: PDF Fonts Not Embedded Causing PostScript Error on Print

We are trying to set up an automated workflow using n8n to retrieve specific daily files from M-Files and send them to an IP-enabled printer before the start of a shift.

When using the M-Files REST API to download PDF files, the resulting files appear to be missing embedded fonts.

  • Attempting to print these downloaded PDFs results in a PostScript error on the printer.

  • The downloaded files open and display correctly on screen, but the printing fails.

  • We attempted to use third-party libraries/scripts to embed the fonts post-download, but this introduced new issues: Turkish characters (such as ş, ğ, İ, ö, ç) are printed as squares or incorrect, weird symbols.

Is there a specific flag, parameter, or header that needs to be included in the REST API download request to ensure the PDF is delivered with all fonts fully embedded?

Is this a known limitation of the M-Files REST API when serving PDF files, and if so, what is the recommended server-side workaround for automated document retrieval and printing?

M-Files Version M-Files (25.9.15198.5)

Parents Reply
  • When I download the m-files file from the web, still doesn't have embedded fonts. When using m-files on desktop and saving it as a PDF using m-print option, there's no problem. The file normally comes from an invoice and an ERP system. The problem is that some properties in the m-files attached to the invoice are overwritten on the PDF. We're only experiencing issues with that overwritten text.

Children
  • It sounds like the source files may require adjustments to ensure they're printable. When you use the "Save as PDF" option in the desktop client, M-Files relies on a PDF printer driver, which seems to embed fonts based on your observations.

    You might want to reach out to your M-Files representative for help with this. There are quite a few variables and settings involved, so this forum isn't the best place to dig into the details. They'll be able to review your files and guide you through the right steps.