PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Nov 18, 2017 4:42 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Dec 21, 2015 8:15 pm 
Offline

Joined: Mon Dec 21, 2015 7:55 pm
Posts: 1
Dear developers!

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 :)


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 21, 2015 9:47 pm 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 303
Location: CCAA
Hi!

You can use PDFsharp for measuring without creating a PDF document like this:
Code:
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group