Add PDFRenderer and move some methods into it.