added pdf functionality (beta)