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)
sau002 Posted: Friday, August 30, 2019 6:02:10 AM(UTC)
 
This works. Thank you.
Paul Rayman Posted: Monday, August 19, 2019 7:41:51 AM(UTC)
 
FPDFTextObj_GetSpaceCharWidth(textObject.Handle, out space) ?

ahh ... are you using PdfText? In this case, you can use GetText to get the text as a string and divide it into words by spaces
sau002 Posted: Saturday, August 17, 2019 4:07:17 AM(UTC)
 
Hi All,
I am evaluating Pdfium.Net SDK fora project that involves reading PDF content.

Consider a PDF document with the words
Hello World

I have no problems in getting the individual characters "H","e","l","l",etc. using the function GetCharacter and their physical dimensions using GetCharBox. This has worked very well so far.

I need some way to predict the width of the SPACE character in the context of the text at the location so that I can frame a logic to join "H","e","l","l","o" into a single word "Hello".

My approach
If the gap between "H" and "e" is less than the width of SPACE character for the font then join into "H" and "e" into "He"

Is this possible? Or is some other way to achieve the same.

Thanks,
Sau