pkgs@{ lib, resholve, zsh, ghostscript, ... }: resholve.writeScriptBin "pdf2pdf" { inputs = with pkgs; [ghostscript]; interpreter = lib.getExe zsh; } '' exec gs -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER "-sOutputFile=''${2}" "''${1}" ''