some minor changes in pdf class