Exporting an app to PDF from standalone app

I have created an app and one of the buttons exports the app to PDF using the export_fig functions from file exchange. It works perfectly in Matlab, but in the compiled version, it does not work. The error in a try/catch is as follows:
I have done a which matlab.graphics.internal.export.WebExportWindowManager.getInstance and the file is in the Matlab program files directory. I also tried copying the files to the project folder, but it still gives the same error.
In the dependency analyzer, it shows that there is a missing file (app.fig which is the main UIFigure in the app). I am not sure if that is the cause.
How can I solve this? Any help will be appreciated!

Answers (1)

I see you are using R2025a -- thanks for including that info on the right.
Be on the lookout for Update #2, available soon. If this is still a problem after Update 2 (R2025a) please contact tech support and reference #3628872.

4 Comments

Thanks for responding so quickly. I have also compiled it with R2025b with the same error. I will wait for the update on either version - hopefully it won't be too long.
It seems exportapp is still not working after Update 2, with the only difference that it does not throw an error, but simply does not export the app.
It is working perfectly fine in Matlab, but unfortunately, I am trying to build a standalone app for the broader business.
I have reported it to tech support and am eagerly awaiting their response.
SMNJS
SMNJS on 26 Jan 2026
Edited: SMNJS on 26 Jan 2026
I'm also waiting for this error to be solved since April 2025... Had multiple contact with the support, but no solution yet.
Hopefully it will be fixed or a workaround provided in the next release ?!
I have since decided to use the Report Generator Toolbox at an additional cost. I am not sure when this bug will be fixed and the resolution of any graphics is much better when using Report Generator, although it does require quite a bit more coding.

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Release

R2025a

Asked:

on 4 Nov 2025

Edited:

on 26 Jan 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!