Adjusted for new renderPDF command.