I have an EPS file generated by MATLAB.
When I convert it to PDF using either ps2pdf
or ghostscript
, parts of the EPS goes outside the page boundaries and are hence lost(as if the EPS was bigger than the set page width)
Converting the EPS to tiff or PNG also gives the same problem.
- How to make
gs
select pagewidth automatically, corresponding to the input file ?
or
- How to scale the EPS before converting it to PDF ?
I tried doing it with LaTeX (which I haven't used much), but it generates a lot of whitespace. I figured out that aligning pictures in LaTeX is not that straightforward.
Please suggest me how to get the conversion right, but without LaTeX.
EPS files don't declare a media size, try using -dEPSCrop