How to split one text file into multiple text files according to text content?

HI, Yoichi,

I noticed the “Page 1” wording was thrown to the bottom for ABC PTD LTD:

But DEF PTD LTD, the wording “page 1” is missing.

I attached my output files for your reference
Sample20221117-4v3.zip (1.4 KB)