pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
289 stars 114 forks source link

Would it be possible to use utf8 characters? #5

Closed lvarayut closed 8 years ago

lvarayut commented 9 years ago

First of all, thanks for the great library. I generated a form filled with English words, it worked like a charm However, when I tried to fill with French or any other languages, I got some weir characters like à1•à ̧€à ̧aà ̧±à ̧à ̧ ̈à ̧2à. Is there any work around to come across this problem?

whitef0x0 commented 9 years ago

Can you provide an example of input characters and their corresponding outputs?

ghost commented 8 years ago

I am sending .fdf data like this: data = 'last_name' : 'Johnамва' (with 4 russian letters) and in PDF I got this: 'last_name' : 'John' Pls help me solve this problem, I've read if I will send .xfrf data it could help but also I dont know how to set in PDF required fields, I mean I tried to send data to empty PDF and nothing changes, so I need to prepare PDF somehow, but how?Thx.

whitef0x0 commented 8 years ago

Seem like this is due to lack of utf8 support in one of our dependencies, https://github.com/countable/js-fdf

whitef0x0 commented 8 years ago

This has been fixed. See PR#30

whitef0x0 commented 8 years ago

@johntayl this should be closed