I have a requirement to find unpaired punctuations from the document on each paragraph. But when I get the paragraph & paragraph text it is coming with reference and reference text. So, the text comes two times one in reference & another time in text.
Example- TC “ REF _Ref435444913 \r 2 DEMISE, RENTS AND OTHER PAYMENTS” \l1 Demise, Rents and Other Payments
Text doesn’t have quotes in it but reference has so it is getting picked up.
Is there any way to get the plain text as paragraph or remove it?
@jainh3 You can use Document.UnlinkFields method to replace all fields in the document with simple text.
Also, you can unlink only particular types of fields. For example the following code unlinks all field except PAGE fields:
@Crane Aspose.Words returns the text that is in the document. As I have mentioned din your document there is non-breaking hyphen. So Aspose.Words returns non-breaking hyphen in the text.
@Crane Decimal point in MS Word is decimal point, and non-breaking hyphen is non-breaking hyphen. In your document there is non-breaking hyphen between STYLEREF and SEQ fields, and not decimal point.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.