We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text Replacement is not working

Hi,


I am trying to replace the text using Aspose Pdf Kit Java, the problem i am facing is that the aspose is replacing only the text in Capital letters and its ignoring the small letters.
For Ex :
The string to be replaced is : Aspose Pdf Kit Java
its replacing with : APKJ

Please solve this in the early its very urgent.

This is happening for so many templates i am just attaching one for our ref.

Florists_HP_1.pdf is the original one. and
24_PHP_FLORISTS.pdf is the replaced one

it replacing with DA instead of Daily Alerts in replaced pdf.

Thanks in Advance,
Arijit

Hi Arijit,

I have tried multiple times at my end to download the file (Florists_HP_1.pdf), but I’m unable to do so. Can you please Zip this PDF file and share that Zip file?

We’re sorry for the inconvenience and appreciate your cooperation.
Regards,

Hi,


I am soory, i can able to download from my side and here i am attached the zip file of the template.
Please let me know if you are still facing the problems i will try to upload some other templates.

Thanks,
Arijit

Hi,

For your ref. here i am attaching some more files.
Actual template is : restaurant_DQC_2.pdf
and generated one is :3_DQC_RESTAURANTS.pdf

if you observe both the templates the values that should be replaced are as follows
value Expected value Value replaced
^BUSINESSDESC-AAAAAA…^ your business goes here same value as expected
^ACCOUNTNAME-AAAA…^ Los Trees Abligos same value as expected
^BULLET1-AAAAAAA…^ Authentic Mexican Rest AMD(only capital letters)
^BULLET2-AAAAAA… Less Standard Destination LSD(Only Capital letters)

^ACCOUNTCITY-AAAAAAAA Lansing L(Only Capital letters)
^ACCOUNTADDRESS1-AA… 1322 Roan Street San Bord 1322RSSB

This is a strange behavior and not i am scared that i can get out of this or not.


Thanks,
Arijit

Hi Arijit,

I have tested both files at my end but couldn’t see any issue. I have attached the snap shots of the output produced at my end. I have used the latest version (Aspose.Pdf.Kit for Java 3.1.0). Can you please make sure that you’re using the latest version as well? If you still find any issues, please do let us know.

We’re sorry for the inconvenience.
Regards,


Thanks Shahzad Latif,


Its working with the latest version 3.1 ,before i am using version 3.0.

Regards,
Arijit