get pdf display to work