I'm using pdftops
in a script to convert PDF to EPS. However looks that is not the "basic" EPS format, and I can't open it with Photopea, I'm getting this error:
The command that I'm executing is this one:
pdftops -eps -level2sep file.pdf file.png
And the generated EPS text has this header:
%!PS-Adobe-3.0 EPSF-3.0
%Produced by poppler pdftops version: 22.05.0 (http://poppler.freedesktop.org)
However, using online tools to convert the same PDF to EPS like https://convertio.co/es/pdf-eps/ is doing the job correctly and then I can open the .eps
file in Photopea without problems.
The generated EPS text has this header:
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: cairo 1.15.12 (http://cairographics.org)
Do I need to change the tool from pdftops
to cairo
? How? pdftops
is not using cairo
underthehood? Or I'm missing some configuration with pdftops
?
Thanks!