made extenssion on pdf paths possible to set by a third parameter fixed some docs