PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Different Font drawing with sheduled task
https://forum.pdfsharp.net/viewtopic.php?f=2&t=636
Page 1 of 1

Author:  fidibus [ Tue Feb 10, 2009 11:12 am ]
Post subject:  Different Font drawing with sheduled task

Hi,

thanks for this great library.

I use a programm with pdfsharp.
If I run this program from sheduled tasks, I get different layouts. By some fonts is the space between the letters bigger. If I run the program by hand, the space is ok.
I use windows server 2003.
Have anybody a idea?

Run by task

<pdf>
14 0 obj
<<
/ItalicAngle 0
/FontBBox[-665 -325 2000 1006]
/Type/FontDescriptor
/StemV 0
/XHeight 597
/CapHeight 905
/FontName/Calibri
/Ascent 905
/Descent -212
/Flags 32
>>
endobj
</pdf>

run by hand

<pdf>
14 0 obj
<<
/ItalicAngle 0
/FontBBox[-476 -194 1214 952]
/Type/FontDescriptor
/StemV 0
/XHeight 464
/CapHeight 632
/FontName/Calibri
/Ascent 952
/Descent -269
/Flags 32
>>
endobj
</pdf>

Author:  Thomas Hoevel [ Wed Feb 11, 2009 8:42 am ]
Post subject: 

Hi!

Maybe it's a rights problem.
Maybe the task can't read the Calibri file and uses a different font (default font) or default settings.

Try running the task with different user settings (Local System, normal user, power user, administrator).

Author:  fidibus [ Wed Feb 11, 2009 9:33 am ]
Post subject: 

Thanks for your answer,

I think, its not a rights problem. In all cases, I use the same user with admin rights.
The Font is calibri, but the space between the letters is different. How do you calculate the gap between the letters?

thanks fidibus.

Author:  pavlentey [ Thu Oct 15, 2009 8:41 pm ]
Post subject:  Re: Different Font drawing with sheduled task

Hi did somebody found the solution to the problem?
I have the same issue with Frutiger Font. There is a space after Capital Letter on Windows 2003 Server (Enterprise Edition). Pdf generated looks good on Windows XP Professional

Author:  fidibus [ Fri Oct 16, 2009 4:35 am ]
Post subject:  Re: Different Font drawing with sheduled task

Hi pavlentey,

yes, I have the solution for this problem in my case. I take it that, you have your font already installed for your application.

After reboot my server, it looks fine.

fidibus

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/