Last active
June 5, 2020 12:31
-
-
Save schtobia/147d0c42aa56251c15cdae47816b3776 to your computer and use it in GitHub Desktop.
Merge PDFs with images in 300dpi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
[ "$#" -lt 2 ] && { echo "Usage: $0 <outputfile> <inputfile> ..."; exit 1; } | |
output_file="$1" | |
shift | |
gs -dBATCH -dNOPAUSE -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -o "$output_file" $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ /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