Fix regression in new PDF code