I've some pdf with a lot of sheets. I made a serach in those files and I've a list with the page numers where the string is found. Now I have to open those files to the exact page, perhaps with a zoom and a rectangle that shows the result.
Any idea?
P.S. The code I use for reading and open the pdf files is:
Dim reader As New PdfReader(FileToOpen)
Dim stamper As New PdfStamper(reader, New System.IO.FileStream("j:\Zoom.pdf", FileMode.Open, FileAccess.ReadWrite))
Dim pdfDest As New PdfDestination(PdfDestination.FITH)
Dim OA As PdfAction = PdfAction.GotoLocalPage(2, pdfDest, stamper.Writer)
stamper.Writer.SetOpenAction(OA)
stamper.Close()
reader.Close()