Posted Sat, 18 May 2019 11:24:38 GMT by

I have created an AM11 BOT to find and replace text on a pdf document using AutoMates PDF replace action.

The text I'm replacing is longer than the current text.

I need the text auto wrap or how can I replace text with new line?

For example: "current sample text" 

"Updated sample 
text is here"



Please advise.

Thank you.


Posted Tue, 21 May 2019 04:22:06 GMT by

I'm curious to know the answer to this one as well...

I tried using %vbCrLf%, chr(10) chr(13), etc. in the replace with field. I created a blank PDF and blank PDF form making sure the field value was configured a multi line to make sure it wasn't that the original searched text couldn't hold a multiple line response, but I was unable to find a resolution.


Win2K8 R2  Automate Enterprise: v11.1.1.1

Posted Wed, 22 May 2019 05:29:11 GMT by

Hi Nick and EJ,


Could you post samples of the steps you are using for us to review?

Posted Wed, 22 May 2019 06:21:16 GMT by

<AMVARIABLE NAME="findText" VALUE="Test" />
<AMVARIABLE NAME="replaceText" VALUE="Testing 1,2,3  Testing 1,2,3  Testing 1,2,3" />
<AMPDF ACTIVITY="create_session" SESSION="PDFSession1" SOURCE="%FileName%" />
<AMPDF ACTIVITY="replace" SESSION="PDFSession1" TEXT="%findText%" REPLACE="%replaceText%" SETFONT="YES" FONT="Arial" SIZE="6" />
<AMPDF ACTIVITY="end_session" SESSION="PDFSession1" />

Posted Wed, 22 May 2019 06:24:27 GMT by

I see that AutoMate uses Aspose.PDF API. Does Aspose.PDF API even support wrapping of text or new line?

Posted Wed, 29 May 2019 00:22:26 GMT by

Hello Nick,

We are currently requesting the answer to your question from our dev team. We will update you ASAP.

Posted Wed, 05 Jun 2019 00:10:43 GMT by

Hello Nick,

Here is the response from our dev team:

"Unfortunately for the time being there is a limitation by Aspose related to replacing text including a Line feed.

as per this article there is a workaround ,but that is very customized for specific purpose and cannot be included in automate for the time being.

We are waiting for updates from the vendor regarding this issue"





You must be signed in to post in this forum.