Class-based views for PDF output