Refactoring of anal_ebc.c and a fix of pdf there.