|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
pinguin
Joined: 03 Apr 2008 Posts: 4
|
Posted: Fri Apr 25, 2008 8:48 pm Post subject: Retrieving Font and Text Width |
|
|
I have been using pdfSharp for some time and I find it extremely useful.
However, I don't know what is the best approach to retrieve the width (in user coordinates) of a text string that needs to be included in the document; similarly, how to get the width of each character that needs to be displayed.
I am currently using Ghostscript to display pdf documents, and I would like to be able to calculate the width (in user coordinates) of a specific text string that is displayed on the screen. Using pdfsharp I think that I can extract the position at which the text rendering starts; but i don't know how to calculate the width of the each character in that string. Thanks in advance for any suggestion. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|