Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Font is wider through windows service application |
Post Reply |
Author | |
hmofaz@pentagon2000.
Beginner Joined: 04 Oct 10 Status: Offline Points: 15 |
Post Options
Thanks(0)
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 |
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
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.
|
|
hmofaz@pentagon2000.
Beginner Joined: 04 Oct 10 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Hello,
Can you explain why is the font difference between Windows Application and Windows Service Application? Thanks
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
hmofaz@pentagon2000.
Beginner Joined: 04 Oct 10 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
hmofaz@pentagon2000.
Beginner Joined: 04 Oct 10 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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 |
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
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 |
|
striker69
Beginner Joined: 15 Apr 14 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
|
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.
|
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
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 |
|
striker69
Beginner Joined: 15 Apr 14 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
|
The service runs using the same user as the one logged. The fonts are bad.
Anything I can try? Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store