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
  #!/bin/bash
  if [ "$1" = "to" ]; then
      shift
      gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$*
  else
      echo Usage: concatpdf to out.pdf in.pdf in2.pdf in3.pdf
  fi
The peculiar syntax with "to" ensures that I do not invocate it incorrectly.



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

Search: