-1

I have a web form where user needs to upload a document file (doc or docx), in that file there is some formatted data on multiple each page. so I want to extract that data but I also need to know page number as well. That means I want content of each page separately, is it possible?

Thanks

1 Answers1

0

Its not in raw format, so you want this maybe to interpret the code of docx. https://github.com/PHPOffice/PHPWord Check this.

  • There is no function to get the current page number. The only way is to use "addPreserveText" like: $footer->addPreserveText('Page {PAGE} of {NUMPAGES}.'); –  Mar 31 '18 at 11:28
  • 1
    I dont want to create doc using php, I need content from doc page wise – Yougeshwar Khatri Mar 31 '18 at 11:29
  • 1
    you can read them but cannot get pages... there is no function. take output echo it that's all... you can break lines after interval to show as it is new page using php –  Mar 31 '18 at 11:30