PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 18, 2024 7:32 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 23, 2015 4:44 am 
Offline

Joined: Fri Jan 23, 2015 4:34 am
Posts: 2
Hi
I have a c# mvc application that makes use of pdfsharp.

I want to use the "Book Antiqua" font to create a pdf file. I instantiate an XFont object as follows:

Code:
XFont font = new XFont("Book Antiqua", 10, XFontStyle.Regular);


This works fine on my local machine but when i publish to my server, it seems to use the default microsoft sans font.

My server is Windows Server 2008 and it does have Book Antiqua font files (regular, bold, bold/italic and italic) installed. All these files have full control permissions to the "users" group on my server.

Would anyone know how to fix this?

thanks in advance,
Kapetanios


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 23, 2015 6:42 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Hi!

Did you reboot the server since the font was installed?

You can try running an application pool with Local System account for your application. If you get the correct with that application pool, then it is a right problem.

I don't know if "users" is the right group if the server uses the default account.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 27, 2015 2:01 am 
Offline

Joined: Fri Jan 23, 2015 4:34 am
Posts: 2
() => true wrote:
You can try running an application pool with Local System account for your application. If you get the correct with that application pool, then it is a right problem.


Thank you for this suggestion. It fixed my issue.

I guess i could restart the server as well but at the moment that's not an easy option for me.

Thanks,
Kapetanios


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 25 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