Interpreting vector and pixel glyphs for characters

2015-03-24 Thread Peter Murray-Rust
On Tue, Mar 24, 2015 at 9:26 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: ... As you would like to remove certain vectors which are matching a certain character/glyph you first need to find out which are the ones drawing e.g. the letter 'T'. I don't think that this is doable in a reasonable

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Am 24.03.2015 um 12:49 schrieb a7med shre3y a7med.shr...@gmail.com: The question here is how does the text still show up in the output file??? as written earlier before the 'text' is a drawing i.e. vector graphics the same way the ellipses have been drawn. I assume the text should have

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Am 24.03.2015 um 10:14 schrieb a7med shre3y a7med.shr...@gmail.com: That's true, I've even tried to change the rendering text mode to other values already as mentioned in the PDF specs 1.5 table 5.3 before removing it also didn't work. So how to remove the graphics content then? the

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Am 24.03.2015 um 10:43 schrieb a7med shre3y a7med.shr...@gmail.com: I mean how to find them in the PDF while rotating over the tokens, what is the operator? On Tue, Mar 24, 2015 at 10:40 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: Am 24.03.2015 um 10:36 schrieb a7med shre3y

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Am 24.03.2015 um 10:36 schrieb a7med shre3y a7med.shr...@gmail.com: What are the drawing commands? I'd then investigate one how to specify the text ones. 738.7469 167.1278 m 733.8743 167.1278 l On Tue, Mar 24, 2015 at 10:26 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: Am

Re: Text removal

2015-03-24 Thread a7med shre3y
What are the drawing commands? I'd then investigate one how to specify the text ones. On Tue, Mar 24, 2015 at 10:26 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: Am 24.03.2015 um 10:14 schrieb a7med shre3y a7med.shr...@gmail.com: That's true, I've even tried to change the rendering

Re: Text removal

2015-03-24 Thread a7med shre3y
I mean how to find them in the PDF while rotating over the tokens, what is the operator? On Tue, Mar 24, 2015 at 10:40 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: Am 24.03.2015 um 10:36 schrieb a7med shre3y a7med.shr...@gmail.com: What are the drawing commands? I'd then investigate

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Hi, Am 24.03.2015 um 09:55 schrieb a7med shre3y a7med.shr...@gmail.com: You can download it from here: https://drive.google.com/file/d/0B5Kxacm1mej-MEZubTNYVVJYTFE/view?usp=sharing looking more closely you correctly replaced the text, but that text was in there for searching within the

Re: Text removal

2015-03-24 Thread a7med shre3y
That's true, I've even tried to change the rendering text mode to other values already as mentioned in the PDF specs 1.5 table 5.3 before removing it also didn't work. So how to remove the graphics content then? Best Regards, On Tue, Mar 24, 2015 at 10:06 AM, Maruan Sahyoun

Re: Text removal

2015-03-24 Thread a7med shre3y
Hi, In fact PDFBox call the operation of transforming 7R %H $SSURYHG to 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 not the opposite (or at least I don't know). I spent some quite long time trying to

Re: Text removal

2015-03-24 Thread Andreas Lehmkühler
Hi, a7med shre3y a7med.shr...@gmail.com 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

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Am 24.03.2015 um 09:40 schrieb a7med shre3y a7med.shr...@gmail.com: Hi, In fact PDFBox call the operation of transforming 7R %H $SSURYHG to 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 not

Re: Text removal

2015-03-24 Thread a7med shre3y
You can download it from here: https://drive.google.com/file/d/0B5Kxacm1mej-MEZubTNYVVJYTFE/view?usp=sharing Best Regards, On Tue, Mar 24, 2015 at 9:48 AM, Maruan Sahyoun sahy...@fileaffairs.de wrote: Am 24.03.2015 um 09:40 schrieb a7med shre3y a7med.shr...@gmail.com: Hi, In fact

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

Re: Text removal

2015-03-24 Thread Maruan Sahyoun
Hi, Am 24.03.2015 um 08:14 schrieb a7med shre3y a7med.shr...@gmail.com: 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