pdf rendering working