Env
- Windows 11 with .NET Framework 4.7
- Aspose.PDF for .NET 25.3
Code
var doc = new Aspose.Pdf.Document(@"C:\Users\hello\Desktop\test\1.pdf");
var textFragmentAbsorber = new TextFragmentAbsorber("微信公众号", new TextSearchOptions(true));
doc.Pages.Accept(textFragmentAbsorber);
var textFragmentCollection = textFragmentAbsorber.TextFragments;
foreach (var textFragment in textFragmentCollection)
{
textFragment.Text = "我们";//throw error, but if set to "We", is OK.
}
Files
test.zip (629.6 KB)
@xxtears
Thanks for writing to us. The error is reproducible and I will create a task for the development team.
@xxtears
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-59599
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issues you have found earlier (filed as PDFNET-59599) have been fixed in Aspose.PDF for .NET 25.7.