in reply to PDF Merge

The bug is in either your code or the library code. One cannot examine what you are doing because you posted neither your code, nor your input files.