Fixed #13. Generate PDF in client.