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 - Text Form Field - Error displaying text in hebrew
  FAQ FAQ  Forum Search   Register Register  Login Login

Text Form Field - Error displaying text in hebrew

 Post Reply Post Reply
Author
Message
shlomir View Drop Down
Beginner
Beginner


Joined: 17 Jan 17
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote shlomir Quote  Post ReplyReply Direct Link To This Post Topic: Text Form Field - Error displaying text in hebrew
    Posted: 17 Jan 17 at 12:35PM
Hi,

I created text field form using debenu, the entered text should be in hebrew or in english.
the problem is that the created field is displaying the entered text only in english, meaning 
that if I enter text in hebrew and focus on sometihng else inside the document (other field for example)
 - it doesn't display the text.
If I click again on the field it shows the entered text.

I created another field using acrobat reader pro with the same settings - and it does display the text correctly: https://www.dropbox.com/s/i7hkaiqckhcu7up/pdf.pdf?dl=0

the code for the field:

pdflib.SelectPage(sigPosition.Page);
pdflib.SetOrigin(1);
pdflib.SetNeedAppearances(1);
sigIndex = pdflib.NewFormField(sigPosition.Name, sigPosition.Type);
pdflib.SetFormFieldAlignment(sigIndex,2);
pdflib.SaveToFile(tmpFileName);

Thanks in advance
Shlomi
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: 17 Jan 17 at 8:19PM
Hi Shlomir,

the actual QuickPDF-library deals with unicode.
If your programming language deals with unicode there shouldn't be a problem.
A problem can be the selected font for your text: Not all fonts supports unicode.
Additionally you can try the "advanced search" option (top, right here on the page) with "hebrew" or "arabic" in the message body.

Cheers and welcome here,
Ingo

Cheers,
Ingo

Back to Top
shlomir View Drop Down
Beginner
Beginner


Joined: 17 Jan 17
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote shlomir Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jan 17 at 11:11AM
Thank you for your answer!

I'm using C# .net 4.6.1 - and it supports unicode.

Well the thing is that the field is showing correctly if the field contains only a single letter (Hebrew letter)
Two letters and more and it doesn't display the text at all (not dots or anything)
In english it works just fine.

I tried changing the font to the one I used in Acrobat reader Pro - no success.

Any Ideas?

Shlomi.
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: 18 Jan 17 at 9:20PM
Hi Shlomir,

here a few links to dig deeper:
http://www.debenu.com/kb/appearance-streams-pdf-form-fields/
http://www.debenu.com/kb/create-pdf-form-fields-programmatically/
http://www.quickpdf.org/forum/new-user-vb6-with-quickpdf_topic1793.html

Please read in the developer guide starting at page 34:
http://www.debenu.com/docs/pdf_library_developer_guide/foxit_quick_pdf_library_13_developer_guide.pdf

Perhaps your problem have to do with the "right alignment"? Try "left".
Perhaps your problem has to do with the missing "SetFormFieldBounds"? How long is your formfield?

Cheers,
Ingo

Back to Top
shlomir View Drop Down
Beginner
Beginner


Joined: 17 Jan 17
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote shlomir Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jan 17 at 2:46PM
Thank you very much!!

UpdateAppearanceStream solved
the problem.

Thanks again,
Shlomi
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