Skip to content

Instantly share code, notes, and snippets.

@malenkiki
Created July 13, 2020 18:04
Show Gist options
  • Select an option

  • Save malenkiki/9b34acf3461dfeadbd06a0faea4eb97c to your computer and use it in GitHub Desktop.

Select an option

Save malenkiki/9b34acf3461dfeadbd06a0faea4eb97c to your computer and use it in GitHub Desktop.
Merge PDF into one PDF file keeping hyperlinks using Ghostscript
gs \
-dNOPAUSE \
-sDEVICE=pdfwrite \
-sOUTPUTFILE=output.pdf \
-dBATCH \
-dPDFSETTINGS=/printer \
-dPrinted=false \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dFastWebView=true \
file-1.pdf file-2.pdf file-*.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment