Exporting an app to PDF from standalone app
Show older comments
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)
Adam Danz
on 4 Nov 2025
0 votes
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
Old Newbie
on 5 Nov 2025
Old Newbie
on 5 Jan 2026
Old Newbie
on 26 Jan 2026
Edited: Old Newbie
on 26 Jan 2026
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!