Hello.
We are trying to replace some text in a couple of PDF files but operations over TextFragment objects take a considerable amount of time - almost 10 times more than with similar documents.
These files have been saved as PDF from PowerPoint.
There's another file similar to the ones described above, which has been saved in the same manner, but doesn't show any delay.
We've tested using latest version, 10.2.0, but there was no difference.
Are there any issues with how the files are generated?
Attached you will find the PDF files and some code sample to reproduce the issue.
Thanks.
We are trying to replace some text in a couple of PDF files but operations over TextFragment objects take a considerable amount of time - almost 10 times more than with similar documents.
These files have been saved as PDF from PowerPoint.
There's another file similar to the ones described above, which has been saved in the same manner, but doesn't show any delay.
We've tested using latest version, 10.2.0, but there was no difference.
Are there any issues with how the files are generated?
Attached you will find the PDF files and some code sample to reproduce the issue.
Thanks.
foreach (Page page in ((Document)pdfDoc).Pages)
{
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("{User.FirstName}", new TextSearchOptions(true));
page.Accept(textFragmentAbsorber);
TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;
foreach (TextFragment textFragment in textFragmentCollection)
{
textFragment.Text = "sample text";
}
}