render pdf link with preview