I'd like to search for a certain string pattern within a PDF document and add a
link to an external HTML page to this string.
OK...
The adding of the link might be done using an "Annotation",
It would HAVE to be done that way - that's how PDF does links...
but in this case I would have to know the exact position of the string pattern in order to place
the link resp. the annotation.
Correct.
Where can I get the position from?
I've tried JPedal and PdfBox. JPedal seems to have an option returning the exact
position when searching for a pattern, but I can't find a solution with PdfBox.
I don't believe PdfBox provides that information. You may be able to get it by modifying their sources, but nothing "out of the box".
Have you tried Multivalent (http://multivalent.sourceforge.net/) or pdfTextStream (http://snowtide.com/home/PDFTextStream/)?
Maybe this task could be solved solely with iText - that would of course be the
best solution.
iText is a generation and modification library - it doesn't do content parsing...
Leonard
--------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax)
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
