Please see my most recent reply to Leonard's comments. This should help you 
understand the issues that are involved. In the text-extraction procedure I 
outlined earlier, I used Reader to produce the PS file from the PDF, thus 
skirting around the issues you have.

You should also be aware that use of the text-extraction procedure I outlined 
using the procedure would not be permissible if you contemplate using it for a 
protected PDF, i.e., one that has protections enabled that you would be 
circumventing by using the procedure.

Now, to your problem. You are trying to extend the text-extraction procedure 
outlined earlier in this thread to text editing. Please heed Leonard's advice 
that editing the text of a PDF is a very bad idea, together with my advice that 
if you insist on editing a PDF, you should be prepared to repair the damage 
that you do to it.

In another thread, I outlined a procedure for editing a PDF which is known to 
work. If you wish to develop your own procedure, please feel free to do so. The 
path you are on right now, however, is not likely to be successful.

Best regards,
Bill Segraves

-------------- Original message from "Sarath Dorbala" <[EMAIL PROTECTED]>: 
-------------- 


Hello,
I am sorry if I am digressing. I have a bunch of PDF files in which I just want 
to blank out the text. As I read the threads of this particular post, I got an 
idea of replacing any textby doing this

(SOME TEXT) Tj to (         ) Tj

But when I converted my pdf file to ps using pdf2ps, I did not see any of such 
structures. Still the ps file could be viewed using ghostscript viewer. I dont 
know if my PDF is encoded in some sense. Is there any other way text is 
rendered in ps? 

I have attached my original PDF and converted PS file for your reference. 

Sorry if it sounds very naive. I am pretty new to this whole thing.

Thank you,
Sarath
<snip>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to