Skip to content

Instantly share code, notes, and snippets.

Last active Jun 5, 2020
What would you like to do?
Merge PDFs with images in 300dpi
#! /bin/sh
[ "$#" -lt 2 ] && { echo "Usage: $0 <outputfile> <inputfile> ..."; exit 1; }
gs -dBATCH -dNOPAUSE -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -o "$output_file" $@
[ /Title (Title)
% /Author (Vorname Nachname)
% /Subject (Subject description)
% /Keywords (comma, separated, keywords)
% All dates are in UTC!
% /ModDate (D:20181231235959)
% /CreationDate (D:20181231235959)
% /Creator (application name or creator note)
% /Producer (PDF producer name or note)
/DOCINFO pdfmark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment