I suspect it
is concatenating the two files, but your PDF viewer doesn't know it should look for a second file after the end of the data for the first one. I'm not really familiar with PDF's internal format, but it may not support simple concatenation like that. To
test this theory, take a look at the files sizes of the two input files and one output file. Is the output size equal to the sum of the input sizes?