Skip to main content
11-Garnet
August 13, 2026
Solved

Save as PDF or Print to PDF causing "Unexpected error" Mathcad Prime 12

  • August 13, 2026
  • 31 replies
  • 2051 views

Hello!
We have 2 users with 2 different computers reporting the same issue with their prime files.
I don’t know if it has something to do with the latest august Windows 11 Cumulative update (KB5121003)?
The issue started happening yesterday after the users updated their Windows 11.

When we try to Save as PDF or use the Print function we get the same errors. And we have tried several PDF printers. It only creates a .PDF file with 0kb in size. 

I uploaded 2 files that we are experiencing this issue with.

Best answer by ptc-791056

I would like to inform you that we have identified a workaround for the Print to PDF issue. Please find the workaround below. 

  • Go to >> “C:\Program Files\PTC\Mathcad Prime 12.0.1.0\MathcadPrime.runtimeconfig.json”
  • Open MathcadPrime.runtimeconfig.json file in Notepad/Notepad ++, under the configProperties section, add the following entries:

"Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection": true,

"Switch.MS.Internal.TtfDelta.DisableDirectWriteForwarderBoundsCheckProtection": true

After the change, the configuration should look like this: 

 

 

Note: Ensure that a comma (,) is added at the end of the previous line (line 16 in the image) to maintain valid JSON syntax.

31 replies

5-Regular Member
August 25, 2026

 

5-Regular Member
August 25, 2026

It unfortunately won’t allow me to post the image, but heres the test

 

{
"runtimeOptions": {
"tfm": "net8.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "8.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true,
"Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection": true,
"Switch.MS.Internal.TtfDelta.DisableDirectWriteForwarderBoundsCheckProtection": true
}
}
}

 

3-Newcomer
August 28, 2026

MathCAD Prime Version: 11.0.1.0
.NET Runtime Installed: 8.0.30
Fonts Used: Calibri

Resolution:
Registry Location - HKLM\SOFTWARE\Microsoft\.NETFramework\AppContext

Type - String Value

Value Name - Switch.MS.Internal.TtfDelta.DisableCmapAndSbitOverflowProtection

Value Data - true

 

Application requires restart to take affect.

 

If that does not work, add additional key in same registry location:

Type - String Value

Value Name - Switch.MS.Internal.TtfDelta.DisableDirectWriteForwarderBoundsCheckProtection

Value Data - true

3-Newcomer
August 31, 2026

Does this work with PRIME 7 and 10 as will. I don’t see a MathcadPrime.runtimeconfig.json file in the C:\Program Files\PTC\Mathcad Prime 10.0.1.0 folder. Just the MathcadPrime.config file

Tomm111-GarnetAuthor
11-Garnet
September 1, 2026

If you look at the post above yours there is a solution for Prime 11.
I think it can be used for 10 aswell, not sure about 7.