How to convert word document (doc, docx) to PDF using PHP

I need to 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).

Hi @masifkhan,

I’d suggest posting your question on Stackoverflow; OJS doesn’t have tools to do that, and while Open Typesetting Stack does, it’s not primarily PHP-based.

Alec Smecher
Public Knowledge Project Team