Hacker News new | past | comments | ask | show | jobs | submit login

> I believe it would be a conceptual nightmare to start defining concat of two docs.

Just append the pages of document 2 to the end of document 1. Then the user can decide whether to remove the page break introduced by it. I have this in my env for doing this with PDF:

  $ cat =concatpdf
  if [ "$1" = "to" ]; then
      gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$*
      echo Usage: concatpdf to out.pdf in.pdf in2.pdf in3.pdf
The peculiar syntax with "to" ensures that I do not invocate it incorrectly.

Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact