Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Nov : How to edit text in PDF files

www.cryer.info
Managed Newsgroup Archive

How to edit text in PDF files

Subject:How to edit text in PDF files
Posted by:"David S" (now..@nohow.com)
Date:4 Nov 2007 01:12:26

I've got a client who has a hundreds of PDF files, and he wants
a way to go through each of them and change some strings, like
URLs and email addresses.

The analogy for a *nix command might be simply

   for i in *.pdf do; sed <$i -f edits.txt >new_$i; done

or something like that, where 'edits.txt' contains a bunch of
substitute commands.  (Hey, the syntax may not be exactly right,
but you get the idea!)

But you can't do this with PDF files since the text is encoded
somehow.

I've looked at a bunch of libraries and they seem to be either
for viewing PDF files, or writing them out.

Any suggestions on how to approach this in Delphi?

TIA
-David

Replies:

www.cryer.info
Managed Newsgroup Archive