I did not use itextsharp, but I used the PDFNet SDK to examine the contents of a large pile of PDF files for localization over the past few weeks.
I would say that what you need is absolutely achievable, but how difficult it is depends entirely on how much you control the quality of the files. In my case, files can be created from any combination of images, text in any random order, tables, shapes, paths, single pixel graphics and scanned pages, some of which consist of hundreds of smaller images. Let me just say that we are having fun with him.
In the way PDFTron works, you will need to implement a viewer (sample is available) and add code for text selection. Given the complexity of the format, it may be necessary to implement a simple editor in a secondary dialog with the ability to expand the selection to the next line (or any other fundamental object used to compose the text). Then this line can be edited and applied by copying the entire page of the document to a new page, replacing the selected elements with a new line. You may have to do some math to make it work well, since almost everything in the PDF file is on the page using the affine transform .
Good luck. I am sure that there are people with some experience with itextsharp and PDF in general.
Iangilham
source share