Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

SetTExt consuming more time

$
0
0
Hello,

I am using aspose java pdf library to modifying pdf. Pdf contains 5 pages ( size is 41 kb).

The whole process takes a lot of time i.e 15-16 seconds.

Below is the code snippet
****************************
for(com.aspose.pdf.TextFragmenttextFragment:(Iterable<com.aspose.pdf.TextFragment>)textFragmentCollection) 
{
textFragment.setText("*" + textFragment.getText());
}
****************************
Please let me know if i am doing any thing wrong or suggest me any alternat method to reduce this long processing time.

I observed that setText() method taking more time.

Please find attached my sample pdf.

Viewing all articles
Browse latest Browse all 3131

Trending Articles