PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jul 01, 2024 8:24 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 31, 2011 9:52 am 
Offline

Joined: Thu Mar 31, 2011 9:37 am
Posts: 1
Hello,

after having read several threads on the topic of using PDFSharp in a medium trust environment, I wanted to bring this up again.

First, some of the previous threads indicated that the WPF version of PDFSharp may run in medium trust. My experiments did not confirm this. As a prerequisition, I had to recompile all assemblies with the [assembly: AllowPartiallyTrustedCallers()] attribute. Having done this, the web application compiles and runs, but throws an exception (System.Security.Permissions.FileIOPermission) in PdfSharp.Fonts.OpenType.CreateWpfFontData - the method fails on calling System.Windows.Media.GlyphTypeface.GetFontStream().

My questions are:
1.) Has anyone been successful in getting PDFSharp/WPF to work in a medium trust environment?
2.) It's been some time since the last public release of PDFSharp. Is there a time frame in which we can expect a new release, and will it support medium trust?

Oh, and just for the record: No, I cannot use iTextSharp due to its AGPL license.

By the way, thanks for this otherwise great piece of software! Any reply will be greatly appreciated.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 31, 2011 12:25 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
pica wrote:
1.) Has anyone been successful in getting PDFSharp/WPF to work in a medium trust environment?

I haven't tried.

AFAIK it should work as long as only private fonts are used (medium trust applications are not allowed to read font files from C:\Windows\Fonts or wherever they may be).

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 64 guests


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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group