Skip to main content
11-Garnet
Aug 13, 2026 12:19 PM UTC
Solved

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

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.

5-Regular Member
Aug 25, 2026 6:33 PM UTC

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.

37 replies

5-Regular Member
Aug 25, 2026 8:08 PM UTC

 

Translate
5-Regular Member
Aug 25, 2026 8:10 PM UTC

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
}
}
}

 

Translate
3-Newcomer
Aug 28, 2026 9:01 AM UTC

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

Translate
3-Newcomer
Aug 31, 2026 8:01 PM UTC

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

Translate
Tomm111-GarnetAuthor
11-Garnet
Sep 1, 2026 8:14 AM UTC

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. 

Translate
3-Newcomer
Sep 9, 2026 1:32 PM UTC

I have the same issue with any of the versions: Mathcad Prime 10, 11,12.

What is the solution ?

Translate
23-Emerald V
Sep 9, 2026 2:36 PM UTC

See above, posts from  ptc-791056,  HH_14389011 and  Tomm1.

Success!
Luc

Translate
3-Newcomer
Sep 10, 2026 6:27 AM UTC

On the Mathcad Prime 10, 11 there is no “MathcadPrime.runtimeconfig.json” file, this is the issue.

Translate
23-Emerald V
Sep 9, 2026 5:50 PM UTC

It appears like one of the windows updates:

• Security Update (KB5124008) (26200.9445)

• .NET Framework Security Update (KB5126052)

• .NET 9.0.20 Security Update for x64 Client (KB5126105)

• .NET 8.0.31 Security Update for x64 Client (KB5126104)

has solved the problem. 

(I set the registry change suggested by HH_14389011:

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

Type - String Value

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

Value Data - true

 

restarted windows, and it updated the items above. After that Printing to .pdf worked. Then I removed the registry change and it was still ok printing .pdf. For Prime 10, 11 and 12 on Windows 11)

 

Success!
Luc

Translate