adding basic pdf functionality