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

Free Support Forum - aspose.com

Special Charachter in Word Document

Hi ,


when using the below code
String text = para.toString(SaveFormat.TEXT).replaceAll("\r", “”);

we are getting some extra characters. Why is that so?

i have attached the input file and desired output file.

Thanks,
Rajesh

<o:p></o:p>

Hi Tahir,



Thanks for your valuable information.

We will require Header and Footer for every page.

So after Using the below code also

doc.getFirstSection().getPageSetup().setDifferentFirstPageHeaderFooter(false);

doc.updateFields();


its showing some special characters in Output text,PFA.

Thanks,
Rajesh

Hi Rajesh,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.