@Srini007
1.Yes its a plain text PDF
2.No - In some cases both are in the same page. So its easy to split those pages. But in some cases Swift code can be in the second page.
In the attached example
First invoice-#11049 INVOICE and SWIFT CODE are in 2 pages.So here page 1 and 2 should split into 1 PDF
Second Invoice - #11050 (Which is in the 3rd page) are having INVOICE and SWIFT code in the same page.Here page 3 should spllt into one single PDF
Thanks for the help