pdf cleanup