Fix PDF after merge