You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by srinath prathi <sr...@gmail.com> on 2015/11/01 10:23:04 UTC
Strange character
Dear All
What is this character ? i get that while stripping the a pdf. How to
treat it?
Yours Sincerely
Srinath
Re: Strange character
Posted by srinath prathi <sr...@gmail.com>.
Thank you. Could do it. I just used String.replaceall(). Just that in java
I need to pass the regex as "\uF0B7".
I think internally it does the same as your algo.
On 2 Nov 2015 13:18, "John Hewson" <jo...@jahewson.com> wrote:
> Iterate over each character and check if Character.UnicodeBlock.of(char) is
> equal to Character.UnicodeBlock.PRIVATE_USE_AREA. If so, omit the
> character.
>
> — John
>
> > On 1 Nov 2015, at 21:10, srinath prathi <sr...@gmail.com>
> wrote:
> >
> > Thank you for the information. How to remove it? When I replaced it with
> > "", it is not working. I want it to be removed. Can you please help me in
> > it?
> >
> >
> >
> >
> > Yours Sincerely
> > Srinath
> >
> > On Mon, Nov 2, 2015 at 12:23 AM, John Hewson <jo...@jahewson.com> wrote:
> >
> >> Indeed it is. The character which you’ve pasted in the e-mail below is
> >> U+F0B7,
> >> which is a private use code point:
> >>
> >> https://codepoints.net/U+F0B7?lang=en <
> >> https://codepoints.net/U+F0B7?lang=en>
> >>
> >> This means that the PDF contains some private text encoding which, while
> >> you
> >> can recognise the characters on the screen, doesn’t correspond to any
> >> usable
> >> text as far as the encoded content goes. This is not uncommon for PDF.
> >>
> >> — John
> >>
> >>
> >>> On 1 Nov 2015, at 02:39, Olaf Drümmer <ol...@callassoftware.com>
> >> wrote:
> >>>
> >>> Hi Srinath,
> >>>
> >>> this is the so called “.notdef" replacement glyph you typically get
> when
> >> rendering text with a font, where that font does not contain the glyph
> >> needed to render a given character.
> >>>
> >>> Olaf
> >>>
> >>>
> >>>> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com>
> >> wrote:
> >>>>
> >>>> Dear All
> >>>> What is this character ? i get that while stripping the a pdf. How
> to
> >>>> treat it?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> Yours Sincerely
> >>>> Srinath
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> >>> For additional commands, e-mail: users-help@pdfbox.apache.org
> >>>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Strange character
Posted by srinath prathi <sr...@gmail.com>.
Is your code to remove all the unicode characters in general?
Iterate over each character means each character or you meant word?
On 2 Nov 2015 13:18, "John Hewson" <jo...@jahewson.com> wrote:
> Iterate over each character and check if Character.UnicodeBlock.of(char) is
> equal to Character.UnicodeBlock.PRIVATE_USE_AREA. If so, omit the
> character.
>
> — John
>
> > On 1 Nov 2015, at 21:10, srinath prathi <sr...@gmail.com>
> wrote:
> >
> > Thank you for the information. How to remove it? When I replaced it with
> > "", it is not working. I want it to be removed. Can you please help me in
> > it?
> >
> >
> >
> >
> > Yours Sincerely
> > Srinath
> >
> > On Mon, Nov 2, 2015 at 12:23 AM, John Hewson <jo...@jahewson.com> wrote:
> >
> >> Indeed it is. The character which you’ve pasted in the e-mail below is
> >> U+F0B7,
> >> which is a private use code point:
> >>
> >> https://codepoints.net/U+F0B7?lang=en <
> >> https://codepoints.net/U+F0B7?lang=en>
> >>
> >> This means that the PDF contains some private text encoding which, while
> >> you
> >> can recognise the characters on the screen, doesn’t correspond to any
> >> usable
> >> text as far as the encoded content goes. This is not uncommon for PDF.
> >>
> >> — John
> >>
> >>
> >>> On 1 Nov 2015, at 02:39, Olaf Drümmer <ol...@callassoftware.com>
> >> wrote:
> >>>
> >>> Hi Srinath,
> >>>
> >>> this is the so called “.notdef" replacement glyph you typically get
> when
> >> rendering text with a font, where that font does not contain the glyph
> >> needed to render a given character.
> >>>
> >>> Olaf
> >>>
> >>>
> >>>> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com>
> >> wrote:
> >>>>
> >>>> Dear All
> >>>> What is this character ? i get that while stripping the a pdf. How
> to
> >>>> treat it?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> Yours Sincerely
> >>>> Srinath
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> >>> For additional commands, e-mail: users-help@pdfbox.apache.org
> >>>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Strange character
Posted by John Hewson <jo...@jahewson.com>.
Iterate over each character and check if Character.UnicodeBlock.of(char) is
equal to Character.UnicodeBlock.PRIVATE_USE_AREA. If so, omit the
character.
— John
> On 1 Nov 2015, at 21:10, srinath prathi <sr...@gmail.com> wrote:
>
> Thank you for the information. How to remove it? When I replaced it with
> "", it is not working. I want it to be removed. Can you please help me in
> it?
>
>
>
>
> Yours Sincerely
> Srinath
>
> On Mon, Nov 2, 2015 at 12:23 AM, John Hewson <jo...@jahewson.com> wrote:
>
>> Indeed it is. The character which you’ve pasted in the e-mail below is
>> U+F0B7,
>> which is a private use code point:
>>
>> https://codepoints.net/U+F0B7?lang=en <
>> https://codepoints.net/U+F0B7?lang=en>
>>
>> This means that the PDF contains some private text encoding which, while
>> you
>> can recognise the characters on the screen, doesn’t correspond to any
>> usable
>> text as far as the encoded content goes. This is not uncommon for PDF.
>>
>> — John
>>
>>
>>> On 1 Nov 2015, at 02:39, Olaf Drümmer <ol...@callassoftware.com>
>> wrote:
>>>
>>> Hi Srinath,
>>>
>>> this is the so called “.notdef" replacement glyph you typically get when
>> rendering text with a font, where that font does not contain the glyph
>> needed to render a given character.
>>>
>>> Olaf
>>>
>>>
>>>> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com>
>> wrote:
>>>>
>>>> Dear All
>>>> What is this character ? i get that while stripping the a pdf. How to
>>>> treat it?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Yours Sincerely
>>>> Srinath
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Strange character
Posted by srinath prathi <sr...@gmail.com>.
Thank you for the information. How to remove it? When I replaced it with
"", it is not working. I want it to be removed. Can you please help me in
it?
Yours Sincerely
Srinath
On Mon, Nov 2, 2015 at 12:23 AM, John Hewson <jo...@jahewson.com> wrote:
> Indeed it is. The character which you’ve pasted in the e-mail below is
> U+F0B7,
> which is a private use code point:
>
> https://codepoints.net/U+F0B7?lang=en <
> https://codepoints.net/U+F0B7?lang=en>
>
> This means that the PDF contains some private text encoding which, while
> you
> can recognise the characters on the screen, doesn’t correspond to any
> usable
> text as far as the encoded content goes. This is not uncommon for PDF.
>
> — John
>
>
> > On 1 Nov 2015, at 02:39, Olaf Drümmer <ol...@callassoftware.com>
> wrote:
> >
> > Hi Srinath,
> >
> > this is the so called “.notdef" replacement glyph you typically get when
> rendering text with a font, where that font does not contain the glyph
> needed to render a given character.
> >
> > Olaf
> >
> >
> >> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com>
> wrote:
> >>
> >> Dear All
> >> What is this character ? i get that while stripping the a pdf. How to
> >> treat it?
> >>
> >>
> >>
> >>
> >>
> >> Yours Sincerely
> >> Srinath
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> > For additional commands, e-mail: users-help@pdfbox.apache.org
> >
>
>
Re: Strange character
Posted by John Hewson <jo...@jahewson.com>.
Indeed it is. The character which you’ve pasted in the e-mail below is U+F0B7,
which is a private use code point:
https://codepoints.net/U+F0B7?lang=en <https://codepoints.net/U+F0B7?lang=en>
This means that the PDF contains some private text encoding which, while you
can recognise the characters on the screen, doesn’t correspond to any usable
text as far as the encoded content goes. This is not uncommon for PDF.
— John
> On 1 Nov 2015, at 02:39, Olaf Drümmer <ol...@callassoftware.com> wrote:
>
> Hi Srinath,
>
> this is the so called “.notdef" replacement glyph you typically get when rendering text with a font, where that font does not contain the glyph needed to render a given character.
>
> Olaf
>
>
>> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com> wrote:
>>
>> Dear All
>> What is this character ? i get that while stripping the a pdf. How to
>> treat it?
>>
>>
>>
>>
>>
>> Yours Sincerely
>> Srinath
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
Re: Strange character
Posted by Olaf Drümmer <ol...@callassoftware.com>.
Hi Srinath,
this is the so called “.notdef" replacement glyph you typically get when rendering text with a font, where that font does not contain the glyph needed to render a given character.
Olaf
> On 01.11.2015, at 10:23, srinath prathi <sr...@gmail.com> wrote:
>
> Dear All
> What is this character ? i get that while stripping the a pdf. How to
> treat it?
>
>
>
>
>
> Yours Sincerely
> Srinath
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org