gt;
> >>>>>>
> >>>>
> >>
> https://drive.google.com/file/d/0B5Kxacm1mej-MEZubTNYVVJYTFE/view?usp=sharing
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> looking more closely you correctly
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
>>&
n using vector
> >>>> commands
> >>>>>> so it's graphics content.
> >>>>>>
> >>>>>> BR
> >>>>>> Maruan
> >>>>>>
> >>>>>>
> >>>>>>> Bes
;>>> Maruan
>>>>>>
>>>>>>
>>>>>>> Best Regards,
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Mar 24, 2015 at 9:48 AM, Maruan Sahyoun <
>>>> sahy...@fileaffairs.de
gt;
> >>>>>>
> >>>>>>> Am 24.03.2015 um 09:40 schrieb a7med shre3y <
> a7med.shr...@gmail.com
> >>> :
> >>>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>
wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>> Am 24.03.2015 um 09:40 schrieb a7med shre3y >> :
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> In fact PDF
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
> >>>&
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
&
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,
> >>>
;> 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
;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,
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
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
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
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
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
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.
>
>
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
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
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,
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
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
22 matches
Mail list logo