Applied Visitor Pattern to the PDF making process