Correction pdf generation