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 - Form Field Font
  FAQ FAQ  Forum Search   Register Register  Login Login

Form Field Font

 Post Reply Post Reply
Author
Message
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Topic: Form Field Font
    Posted: 12 Apr 16 at 3:44PM
I am not being able to set the font of a new form field, I used :

NewFormField
SetFormFieldBounds
AddFormFont         (Arial)
SetFormFieldFont   (Arial)
SetFormFieldTextSize  (10) 

and the new field is not displaying the text properly !

any help ???
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: 13 Apr 16 at 10:08PM
Hi eborger,

you should post your relevant code snippet - so the users here have a chance to point you into the right direction ;-)
We had a similar thread few days ago:
http://www.quickpdf.org/forum/setting-fontstyle-in-formfields_topic3295.html
Inside the listed guids you'll find answers.
Cheers,
Ingo

Back to Top
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Posted: 26 Apr 16 at 2:24PM
I read all the examples, and did everything according to the docs, but all I get are dots inside the form field.
If I use helvetica it works, but with arial or courier it does not !!!!

the code I posted is a snippet of my code, I am using the DLL version and all works fine, except for this !
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: 26 Apr 16 at 5:11PM
Hi eborger,

if it's your code snippet then it's clear that Arial won't work
and if you've read already the docs then you know why ;-)
You have to add Arial physically to the library 'cause it's not inside the lib:
AddTrueTypeFontFromFile
Please keep in mind that not all fonts are working with unicode.
For Arial for example there's a special "Arial Unicode MS"...
QuickPDF uses strings as unicode...



Cheers,
Ingo

Back to Top
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Posted: 26 Apr 16 at 8:31PM
I did add Arial to fonts, sorry it's not included in the code because it was done before, I use Arial for other texts also.....
Back to Top
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Posted: 26 Apr 16 at 8:32PM
I do not use unicode, my encoding is CD1252.
Back to Top
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Posted: 26 Apr 16 at 8:32PM
I mean CP1252
Back to Top
eborger View Drop Down
Team Player
Team Player


Joined: 29 Apr 09
Location: Brazil
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote eborger Quote  Post ReplyReply Direct Link To This Post Posted: 26 Apr 16 at 8:35PM
I can send you the PDF, you can see the Arial font in the properties.
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: 26 Apr 16 at 10:29PM
Hi,

it's the last time i'm answering regarding this issue...
CP1252 is single byte english encoding. Some call it ANSI.
But QuickPDF deals with unicode and not ANSI.
CP1252 is represented by a single byte for each letter - unicode is represented by two bytes.
I think there's your problem.
It depends on your programming language.
If there's no real unicode support perhaps you can convert it (this is possible in VB6 for example).
Here you can find a mapping table CP1252/unicode:
http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT
If you read in the reference about SetFormFieldValue...
http://www.debenu.com/docs/pdf_library_reference/SetFormFieldValue.php
...you see that unicode is needed.
Perhaps it's possible for you to upload the pdf anywhere and post the link here...

Cheers,
Ingo

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