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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
sau002  
#1 Posted : Wednesday, September 4, 2019 6:29:06 AM(UTC)
Quote
sau002

Rank: Newbie

Groups: Registered
Joined: 8/17/2019(UTC)
Posts: 6
United Kingdom

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

Paul Rayman  
#2 Posted : Thursday, September 5, 2019 6:28:02 PM(UTC)
Quote
Paul Rayman

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(...)
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
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.