I want merge several pdf files into a single one. Found this great answer on SO, but there is a problem here. My pdfs are not in the same directory, so essentially I want to do a
find call and pipe the output to
gs, something like this:
find . -path "*_somedir/*" -name "some.pdf" -print0 | gs ...
I have checked the manual pages for
gs but there is no information for null-terminated arguments, so I am not sure how to pass the arguments from
gs. I assume if I skip the -print0 flag it will run the
gs call after the first argument.
Any ideas? I am of course open to other ways to merge the pdfs but I'd like to avoid installing new packages since this is to be done on a community server.