Artifacts when converting .svg to pdf

13 vues (au cours des 30 derniers jours)
Andrea Candela
Andrea Candela le 2 Sep 2022
Commenté : Jan le 3 Sep 2022
Hi
I am writing my thesis and i ran into a strange problem when I export the surface .svg files and convert to pdf with acrobat pdf maker.
The surfaces shows weird artifacts as can be seen in the picture below.
By using another function, such as "peaks" the problem is still here and so I think that it's something related to the rendering in acrobat pdf maker printer. Neither changing Matlab version from 2019b to 2022a works.
I tried also to export the file directly from microsoft word and all the lines are thicker than what I see on the screen
I'll attach my .svg file and the code so, maybe, the problem can be reproduced and we can troubleshoot better.
Best Regards
Andrea

Réponses (1)

Jan
Jan le 2 Sep 2022
The output is fine, if I open your SVG in Edge and print it to a PDF using doPDF (by the way: version 7, the modern versions are an overkill for my purpose and might contain bloatware).
This means, that Acrobat PDF Maker is the problem. What about using another function for the conversion or exporting the figure as PDF directly in Matlab without the indirection pver an SVG file?
  2 commentaires
Andrea Candela
Andrea Candela le 2 Sep 2022
I exported in SVG file because this graph has to be inserted in my thesis and I want a vector to preserve quality. I tried to export in .emf and the result is the same.
So I think that the last option is to use a raster file.
Jan
Jan le 3 Sep 2022
@Andrea Candela: As I have said already, the conversion from SVG to PDF works fine for me. If it fails with Acrobat PDF Maker, do not use this software but one of the many other solutions.
If you export to EPS or PDF directly, it should work also. I do not see a reason to give up and using a raster file.
If you need to use Acrobat PDF Maker, ask in a forum for this tool how to convert an SVG successfully. I do not see that this is a Matlab problem.

Connectez-vous pour commenter.

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by