Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to handle the charcode from GetCharInfo for documents in unicode?
Rank: Newbie
Groups: Registered
Joined: 8/17/2019(UTC) Posts: 6 
|
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
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Try to use PdfTextObject.Font.ToUnicode(...)
|
|
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to handle the charcode from GetCharInfo for documents in unicode?
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close