Gill, Mukhtiar wrote:
> Bruno,
>       Your view is "Yes but not in the expected way .."
>       So how then using code would one search for strings 
>       etc .. with a file opended with PdfReader object ??

Mark Storer has written a very interesting comment for this
FAQ entry: http://itext.ugent.be/library/question.hp?id=48

In PDF you can read the content stream of a page.
In iText you would use PdfReader.getPageContent(int pagenumber);
However, if you don't know anything about PDF, you might be
very surprised with what you find.

In the book I have a Hello World example that reads perfectly
well when you open it in Adobe Reader, but when you look at
the page content, you see something like: "ld Wor llo He"
(with extra PDF syntax stuff that is too complex to explain here).

I remember April Fool's Day in my primary school. Every year
the teacher sent an ignorant pupil to the head master for a
'bucket of electricity'. That's nonsense of course; well,
asking to search a PDF for Strings is pretty close to it.

It might be possible for some PDFs, but it won't be possible
for all of them. Only PdfLib TET (software that isn't free,
and that has some powerful Artificial Intelligence inside),
OCR tools and viewers like Adobe Reader are able to search
for words in a more or less reliable way.

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to