PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Text Under Image font width https://forum.pdfsharp.net/viewtopic.php?f=2&t=3124 |
Page 1 of 1 |
Author: | peter227 [ Mon Jun 08, 2015 8:15 pm ] | ||
Post subject: | Text Under Image font width | ||
Hi, I've been using PDFsharp 1.32 WPF for some time with great results. My current issue is really a cosmetic one, but important to my users. I've successfully created a text-under-image pdf but when the user selects the text (Ctrl-A) it appears that not all the text has been ocr'd. In the attached file you can see that the highlighted text is shorted than the barcode that was found. If I add spaces to the end of the string, the DrawString function appears to trim the blanks (front and back by the way) I've already recompiled the library for other issues and if that's what I have to do for this I'm ok with that as well. Thanks in advance, Peter
|
Author: | Thomas Hoevel [ Tue Jun 09, 2015 9:33 am ] |
Post subject: | Re: Text Under Image font width |
Hi! Not really my area of expertise, but AFAIK PDF files do not draw spaces. Writing "Hello, World!" will actually draw "Hello," at one spot and "World!" at another spot (or even smaller fragments). Some untested ideas: Maybe you can add non-breaking spaces or underscores - or increase the font size. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |