dirty and quick code to make pdf