Written a step by step instruction to generate a PDF document.