|PDFsharp & MigraDoc Foundation
|Extraction of some text measurement utilities
|Page 1 of 1|
|Author:||Shestakov [ Mon Dec 21, 2015 8:15 pm ]|
|Post subject:||Extraction of some text measurement utilities|
You're doing a great job for all of us, humble and most of the time silent users.
For example, I just registered to ask for a feature of sorts. And surely to thank you
The idea is as follows:
As a text rendering engine PDFSharp implements some text measurement utility, based upon font properties. Sometimes this is a very important functionality which in the .Net world completely relies on the framework and OS functions requiring full trust, which is not always acceptable. And there is no neat third party solution.
It would be great to be able to use this measurement functionality independently of the rendering engine itself. Let it be not a separate library, but at least a set of public classes available outside of the PDFSharp assembly without constructing a PDF document each time and, which is important, without supporting a patched version of the library.
Thank you very much, at least for reading this
|Author:||TH-Soft [ Mon Dec 21, 2015 9:47 pm ]|
|Post subject:||Re: Extraction of some text measurement utilities|
You can use PDFsharp for measuring without creating a PDF document like this:
XGraphics gfx = XGraphics.CreateMeasureContext(new XSize(2000, 2000), XGraphicsUnit.Point, XPageDirection.Downwards);The values passed to XSize shouldn't make a difference.
With the current library, PDFsharp will add about 600 kiB to your project.
A "measuring only" library would probably be much smaller, but I'm afraid empira will not make/maintain such a version.
Thank you for your feedback and your suggestion.
If you make such a measuring only library, please let us know how small you got it.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group