Convert word document (doc, docx) to pdf using php with following requirements.
1. Place line number in front of each row in generated pdf.
2. Place page number at bottom of each page in generated pdf.
Note: Generated PDF should have all content as it is in Word document (doc, docx)