HI
We are experiencing issue when trying to replace text from PDF document. Issue occurs only on the server where the app is hosted. Locally it works fine.
textFragment.text is taking almost 20 seconds just for changing 1 occurance.
here is the code snippet
Document pdfDocument = new Document(ms);
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("test1");
pdfDocument.Pages[1].Accept(textFragmentAbsorber);
TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;
foreach (TextFragment textFragment in textFragmentCollection)
{
textFragment.Text = "test2";
}
Any help appreciated
Thank you
Hi Ashwini,
Thanks for contacting support.
Please share your source PDF file and also please share if the problem occurs for some particular document or its appearing for all the files. Also please share some details regarding your hosting/deployment server i.e. Operating System name, .NET Framework version, any particular policies / restrictions imposed over your server etc.
We will test the scenario and will share our findings. We are sorry for this inconvenience.
This problem occurs for all PDF's , attached one for your refrence.
Please find below deployment server details.
Operating System name :Windows server 2008 R2
NET Framework version: 4.0
Hi Ashwini,
Thanks for sharing the details.
During my initial tests, I have observed that when performing same operation over Windows 7 (x64), the operation is completed in 3 seconds. However we are working on testing the scenario over Windows 2008 and will share our findings shortly.