blob: 5e9fb215c77a7963d5d11bc9b9b90d6dbd0d84e1 (
plain)
1
2
3
4
5
6
7
8
|
pkgs@{ lib, resholve, zsh, ghostscript_headless, ... }:
resholve.writeScriptBin "pdf2pdf" {
inputs = with pkgs; [ghostscript_headless];
interpreter = lib.getExe zsh;
} ''
exec gs -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER "-sOutputFile=''${2}" "''${1}"
''
|