render pdf file stream works