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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Font is wider through windows service application
  FAQ FAQ  Forum Search   Register Register  Login Login

Font is wider through windows service application

 Post Reply Post Reply
Author
Message
hmofaz@pentagon2000. View Drop Down
Beginner
Beginner


Joined: 04 Oct 10
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote hmofaz@pentagon2000. Quote  Post ReplyReply Direct Link To This Post Topic: Font is wider through windows service application
    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
 
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
hmofaz@pentagon2000. View Drop Down
Beginner
Beginner


Joined: 04 Oct 10
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote hmofaz@pentagon2000. Quote  Post ReplyReply Direct Link To This Post Posted: 04 Feb 13 at 1:55PM
Hello,
 
Can you explain why is the font difference between Windows Application and Windows Service Application?
 
Thanks
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
hmofaz@pentagon2000. View Drop Down
Beginner
Beginner


Joined: 04 Oct 10
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote hmofaz@pentagon2000. Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
hmofaz@pentagon2000. View Drop Down
Beginner
Beginner


Joined: 04 Oct 10
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote hmofaz@pentagon2000. Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
striker69 View Drop Down
Beginner
Beginner


Joined: 15 Apr 14
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote striker69 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
striker69 View Drop Down
Beginner
Beginner


Joined: 15 Apr 14
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote striker69 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store