exportgraphics failed when exporting PDF

8 visualizaciones (últimos 30 días)
JEAN BAPTISTE
JEAN BAPTISTE el 11 de Mzo. de 2025
Respondida: NVSL el 22 de Abr. de 2025
I have tried to use the function exportgraphics with a figure to be exported in a PDF file in Matlab 2024b.
The function is returning several Java errors, although it was working fine on 2021a.
Is there a patch to solve this problem ? Thank you
PS : I have used the following example
plot([0 0.3 0.1 0.6 0.4 1])
ax = gca;
exportgraphics(ax,'myplots.pdf')
  4 comentarios
Adam Danz
Adam Danz el 11 de Mzo. de 2025
Thanks for the reproduction code. I ran it in R2024b update 2 on a windows 11 machine but there were no errors and no unexpected behavior. I also tested it in the R2024b beta but still no problems.
If the problem appears again after a MATLAB restart, contact tech support and include a copy of the error message and stack to get more targetted help.
JEAN BAPTISTE
JEAN BAPTISTE el 12 de Mzo. de 2025
Movida: Voss el 12 de Mzo. de 2025
Thanks for your answer.
Unfortunately, the problem persists after a Matlab and laptop restart.
I will contact the technical support for help.

Iniciar sesión para comentar.

Respuestas (1)

NVSL
NVSL el 22 de Abr. de 2025
I understand you are encountering error when trying to use “exportgraphics”.
There is a workaround to download a plot using GUI. The below attached link explains the workflow.
Hope this helps!

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by