New PDF implementation