rotto Posted February 26, 2007 Share Posted February 26, 2007 Hi there, I looking for a way to take an existing pdf file and find and replace some text in it, end then send the pdf file to the user? All the current pdf classes seems to be able to create pdf files, but not search and replace text in it. Any help would be appreciated. Thanks Rehan Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted February 26, 2007 Share Posted February 26, 2007 I think PDF is just a text file. Can you open it, do a strstr() and save it to another_file.pdf? monk.e.boy Quote Link to comment Share on other sites More sharing options...
Accurax Posted February 26, 2007 Share Posted February 26, 2007 I was under the impression that a pdf was an image file........ which is why you would need some OCR software to do this (OCR = optical character recognition). I could be wrong.... but i dont think so Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 26, 2007 Share Posted February 26, 2007 You're right, unless the PDF has special properties, you'd need to use OCR software. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.