Now generating PDF instead of HTML.