Print Page | Close Window

Font is wider through windows service application

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2522
Printed Date: 03 May 24 at 10:05AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Font is wider through windows service application
Posted By: hmofaz@pentagon2000.
Subject: Font is wider through windows service application
Date Posted: 31 Jan 13 at 4:32PM
Hello,
 
we use QuickPDF ver 8.13.
when our program is run through window application on OS Windows Server 2008 R2 x64 the text is displayed correcly and font size is acceptable.
but once the program is run through windows service application on OS Windows Server 2008 R2 x64 the font size displayed is wider.
the font we use is Arial Narrow but this font is not installed on this PC
what could be a reason for such behavior?
 
Thanks
 



Replies:
Posted By: Wheeley
Date Posted: 01 Feb 13 at 2:02AM
If you are using a font in a PDF that is not on the computer, than a substitute font is used, usually one from the same family. The one exception is if the font is embedded in the PDF itself. They it should display correctly. So if you are the one creating the PDF, embed the fonts in the PDF to keep this from happening.


Posted By: hmofaz@pentagon2000.
Date Posted: 04 Feb 13 at 1:55PM
Hello,
 
Can you explain why is the font difference between Windows Application and Windows Service Application?
 
Thanks


Posted By: Ingo
Date Posted: 04 Feb 13 at 8:48PM
You wrote that the font is not installed on the local pc.
And that's the explanation for this behavior.
You can embed the used fonts inside the pdf and it will be displayed on all machines in the same way.
If not then the pdf-reader take a look on the local machine what kind of fonts are there.
If the used font isn't installed on the local machine then the reader tries to use similar font data and this will never be exactly the same.

Cheers, Ingo


Posted By: hmofaz@pentagon2000.
Date Posted: 06 Feb 13 at 3:15PM
Hello,
 
Is there an option in QuickPDF API to set "Arial Narrow" font(which will be attached to execution file) to QuickPdf object.
and QuickPDF will display this font regardless font is installed or not on pc?
 
Thanks in advance


Posted By: Ingo
Date Posted: 06 Feb 13 at 9:05PM
Yes.
There's an embed-functionality in QuickPDF to put the used font to the pdf.
Then it doesn't matter if the font is additionally installed on the pc or not.

Cheers, Ingo


Posted By: hmofaz@pentagon2000.
Date Posted: 10 Jul 13 at 4:20PM
Hello,

We installed "Arial Narrow" font on Windows Server 2008 R2 x64 PC.

But while rinning program through windows SERVICE application the font size is displayed wider, like font is not installed.

Please advise.

p.s. If you cannot recreate this behaivor I'll send the small test programs for Windows Appplication and Windows Service Application





Posted By: Wheeley
Date Posted: 10 Jul 13 at 9:10PM
If I remember correctly, fonts are installed by user on a Windows machine. So each user can have a different set of fonts available to them. So you need to check what authority the Windows Service runs under. If you are using "Local System Account", then change the service to use the specific user you installed the font under.

Wheeley


Posted By: striker69
Date Posted: 15 Apr 14 at 1:30PM
This post is getting old, however, I have the same problem and wondered if you found a solution to this.

Running the process from the user in command line, everything works fine.
Doing the same thing but from a Windows Service and the fonts are bad.

Thanks for any hints.


Posted By: Wheeley
Date Posted: 15 Apr 14 at 10:13PM
Look at my previous post. What is the "Log On" setup for the service you are using? Fonts are user based. So each user on a computer can have a different set of fonts available to them. So your service needs to be setup to "Log On" with a user that has the fonts you want to use. Using "Local System" account does not help. "Local System" account is a special user on your computer which does not allow you to easily add user specific settings to it like fonts and printers. You need to use an actual user as the Log On user. Then your service will get access to the fonts for the user and most likely produce the correct PDF.

Wheeley


Posted By: striker69
Date Posted: 16 Apr 14 at 12:06AM
The service runs using the same user as the one logged. The fonts are bad.

Anything I can try?

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk