logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Thursday, September 5, 2019 6:28:02 PM(UTC)
 
Try to use PdfTextObject.Font.ToUnicode(...)
sau002 Posted: Wednesday, September 4, 2019 6:29:06 AM(UTC)
 
Hi All,
I am using the method PdfTextObject.GetCharInfo to read the individual character from the document. This works fine for most of the cases. However, there are some documents (possibly unicode) which do not make sense.

E.g. The PDF document has the words "Page 10"
The property PdfTextObj.TextUnicode correctly gives me "Page 10"
However, the charcode values from GetCharInfo(index,charcode,kerning) are as follows:

Index 0->44
Index 1->6
Index 2->27
Index 3->11
Index 4->1
Index 5->28
etc.

I am under the assumption, that the right encoding has to be applied to make proper sense of "charcode". Any help?

Many thanks,
Sau