如何使用 ghostscript 调整 .eps 文件的大小

How to resize an .eps file using ghostscript

如何使用 ghostscript 或其他适用于 macOS 或 ruby 的命令行实用程序调整 .eps 文件的大小?我想指定分辨率,例如 1000x1000,而不是比例。

与此类似 post 但使用指定的分辨率调整大小

感谢@KenS 的帮助。作为参考,这是我最终使用的命令。

gs -o input.eps -dEPSFitPage -sDEVICE=eps2write -c "<</Install {10 10 scale}>> setpagedevice" -f output.eps