Fixed PDF Rendering, if data comes from database