Question
Virtusa
AU
Last activity: 24 Nov 2020 20:04 EST
New line after every sentence in the pdf
Hi All,
I have got a text area where users enter lot of information and we have feature to display the information in a pdf. I'm able to display the information in the pdf but the requirement is - as it has got lot of information in the text area, I need to display sentences in new lines. For example -
"Pegasystems is the leader in cloud software for customer engagement and operational excellence. If you’ve driven a car, used a credit card, called a company for service, opened an account, flown on a plane, submitted a claim, or performed countless other everyday tasks, chances are you’ve interacted with Pega. For the past 30 years, our technology – CRM, digital process automation, robotics, AI, and more – has empowered the world’s leading companies to achieve breakthrough results."
The output should be like -
"Pegasystems is the leader in cloud software for customer engagement and operational excellence.
If you’ve driven a car, used a credit card, called a company for service, opened an account, flown on a plane, submitted a claim, or performed countless other everyday tasks, chances are you’ve interacted with Pega.
For the past 30 years, our technology – CRM, digital process automation, robotics, AI, and more – has empowered the world’s leading companies to achieve breakthrough results."
Hi All,
I have got a text area where users enter lot of information and we have feature to display the information in a pdf. I'm able to display the information in the pdf but the requirement is - as it has got lot of information in the text area, I need to display sentences in new lines. For example -
"Pegasystems is the leader in cloud software for customer engagement and operational excellence. If you’ve driven a car, used a credit card, called a company for service, opened an account, flown on a plane, submitted a claim, or performed countless other everyday tasks, chances are you’ve interacted with Pega. For the past 30 years, our technology – CRM, digital process automation, robotics, AI, and more – has empowered the world’s leading companies to achieve breakthrough results."
The output should be like -
"Pegasystems is the leader in cloud software for customer engagement and operational excellence.
If you’ve driven a car, used a credit card, called a company for service, opened an account, flown on a plane, submitted a claim, or performed countless other everyday tasks, chances are you’ve interacted with Pega.
For the past 30 years, our technology – CRM, digital process automation, robotics, AI, and more – has empowered the world’s leading companies to achieve breakthrough results."
I tried using pxReplaceAllViaRegex but this function has got regular expression as 1st parameter and a string as 2nd parameter and my requirement is to have string as 1st parameter and regular expression as 2nd parameter. I was thinking like whereever I encounter full stop (.) convert it to full stop and new line (\n). But this function pxReplaceAllViaRegex doesn't work.
Any pointers or suggestions are highly appreciated.
Cheers,
Satya