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!
Form Field Font |
Post Reply |
Author | |
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
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 ???
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
|
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 !
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
|
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.....
|
|
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
|
I do not use unicode, my encoding is CD1252.
|
|
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
|
I mean CP1252
|
|
eborger
Team Player Joined: 29 Apr 09 Location: Brazil Status: Offline Points: 33 |
Post Options
Thanks(0)
|
I can send you the PDF, you can see the Arial font in the properties.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
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