Re: Text removal

2015-03-27 Thread a7med shre3y
gt; > >>>>>> > >>>> > >> > https://drive.google.com/file/d/0B5Kxacm1mej-MEZubTNYVVJYTFE/view?usp=sharing > >>>>>>>>> > >>>>>>>> > >>>>>>>> looking more closely you correctly

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
t >>>> was >>>>>> in >>>>>>>> there for searching within the PDF as it used text rendering mode 3 >>>>>>>> (invisible). The 'text' you are still seeing is drawn using vector >>>>>> commands >>&

Re: Text removal

2015-03-24 Thread a7med shre3y
n using vector > >>>> commands > >>>>>> so it's graphics content. > >>>>>> > >>>>>> BR > >>>>>> Maruan > >>>>>> > >>>>>> > >>>>>>> Bes

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
;>>> Maruan >>>>>> >>>>>> >>>>>>> Best Regards, >>>>>>> >>>>>>> >>>>>>> On Tue, Mar 24, 2015 at 9:48 AM, Maruan Sahyoun < >>>> sahy...@fileaffairs.de

Re: Text removal

2015-03-24 Thread a7med shre3y
gt; > >>>>>> > >>>>>>> Am 24.03.2015 um 09:40 schrieb a7med shre3y < > a7med.shr...@gmail.com > >>> : > >>>>>>> > >>>>>>> Hi, > >>>>>>> > >>>>

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
wrote: >>>>> >>>>>> >>>>>> >>>>>>> Am 24.03.2015 um 09:40 schrieb a7med shre3y >> : >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> In fact PDF

Re: Text removal

2015-03-24 Thread a7med shre3y
t; >> "To > >>>>> Be Approved" as "encoding". Anyway, either it's encoding or > decoding, I > >>>>> thought it's easier to transform "7R %H $SSURYHG" to "To Be Approved" > >> and > >>>&

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
sier to transform "7R %H $SSURYHG" to "To Be Approved" >> and >>>>> not the opposite (or at least I don't know). I spent some quite long >> time >>>>> trying to find out how to find the character codes for the glyphs in >> the &

Re: Text removal

2015-03-24 Thread a7med shre3y
he opposite (or at least I don't know). I spent some quite long > time > >>> trying to find out how to find the character codes for the glyphs in > the > >>> currently used font, then I found that it's not an easy task. By the > way, > >>>

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
;> currently used font, then I found that it's not an easy task. By the way, >>> if you know how to do that, I'd so much appreciate it because I need that >>> for replacing text with another text and for that the new text must be >>> encoded the same way as th

Re: Text removal

2015-03-24 Thread a7med shre3y
;d so much appreciate it because I need that > > for replacing text with another text and for that the new text must be > > encoded the same way as the original! > > > > Back to the text removal, I am able to find the text and also remove it > by > > calling reset,

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
task. By the way, > if you know how to do that, I'd so much appreciate it because I need that > for replacing text with another text and for that the new text must be > encoded the same way as the original! > > Back to the text removal, I am able to find the text and also remove

Re: Text removal

2015-03-24 Thread Andreas Lehmkühler
Hi, > a7med shre3y hat am 23. März 2015 um 15:03 > geschrieben: > > > Hi all, > > Currently I am facing a strange problem removing text from the some PDFs. > My program is able to find the text and "remove it" by calling the > COSString.reset() method. > The problem is, when I open the output

Re: Text removal

2015-03-24 Thread a7med shre3y
replacing text with another text and for that the new text must be encoded the same way as the original! Back to the text removal, I am able to find the text and also remove it by calling reset, as I mentioned in my first email, when I print the output content I don't find the text anymore

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Hi, > Am 24.03.2015 um 08:14 schrieb a7med shre3y : > > Hi, > > Here's how I do it: > > 1. I use the following method to encode the text: > > String encode(String text, PDFont font) throws Exception { >StringBuilder builder = new StringBuilder(); >byte[] stringBytes = text.getB

Re: Text removal

2015-03-24 Thread a7med shre3y
Hi, Here's how I do it: 1. I use the following method to encode the text: String encode(String text, PDFont font) throws Exception { StringBuilder builder = new StringBuilder(); byte[] stringBytes = text.getBytes(); int codeLength = 1; for(int i = 0; i < stringByt

Re: Text removal

2015-03-23 Thread Maruan Sahyoun
Hi, your text is encoded so within the show text operator Tj the string is 7R %H $SSURYHG You wrote that you encode your string to find it - what do you get? BR Maruan > Am 23.03.2015 um 22:01 schrieb a7med shre3y : > > Hi Maruan, > > Here's a link from where you can download the PDF. > >

Re: Text removal

2015-03-23 Thread a7med shre3y
Hi Maruan, Here's a link from where you can download the PDF. https://drive.google.com/file/d/0B5Kxacm1mej-bm82NzNvUXFPSmMtUjc0ZFVjVVlrODZnRzdn/view?usp=sharing Kind Regards, a7mad On Mon, Mar 23, 2015 at 8:57 PM, Maruan Sahyoun wrote: > Hi, > > you need to upload it to a public location as t

Re: Text removal

2015-03-23 Thread Maruan Sahyoun
Hi, you need to upload it to a public location as the mailing list doesn't support attachments. BR Maruan > Am 23.03.2015 um 19:18 schrieb a7med shre3y : > > Dear Maruan, > > Thank you very much for the information. Please find herewith attached the > PDF to reproduce the problem. > The tex

Re: Text removal

2015-03-23 Thread a7med shre3y
Dear Maruan, Thank you very much for the information. Please find herewith attached the PDF to reproduce the problem. The text to remove is: "To Be Approved". The text has a multi-byte encoding, so I call first to encode it in order to find it then remove it. Best Regards, a7mad On Mon, Mar 23,

Re: Text removal

2015-03-23 Thread Maruan Sahyoun
Dear a7mad, removing text from a PDF is not an easy task as - text which might visually appear as a single item might consistent of individual parts within the PDF itself e.g. each character or groups of characters are place individually in different COSStrings - text might be drawn using graphi

Text removal

2015-03-23 Thread a7med shre3y
Hi all, Currently I am facing a strange problem removing text from the some PDFs. My program is able to find the text and "remove it" by calling the COSString.reset() method. The problem is, when I open the output PDF file, I still see the text but not selectable (I mean when I try to highlight it