Preprocess edoc.