pdfforms icon indicating copy to clipboard operation
pdfforms copied to clipboard

utf8-support

Open laserK3000 opened this issue 2 years ago • 5 comments

Hi,

thanks for maintaining this project. It helped me a lot!

I had issues with forms that contained fields labeled with non-ascii characters. These fields were left blank after filling the form. It turned out that this problem can be fixed be submitting the fields in the form of an xfdf to pdftk

Please consider the attached PR

laserK3000 avatar Feb 04 '22 17:02 laserK3000

Thanks for your interest in pdfforms, @laserK3000 ! This is really interesting. I’ve wanted this functionality myself. Once we’re generating xml, I think I’d be more comfortable doing it with xml.etree. How difficult would that be? Also, is there any use case for which the original method would be preferred?

altaurog avatar Feb 07 '22 14:02 altaurog

I am afraid I can't give a qualified answer if that change breaks functionality. I would assume xfdf is a superset of the fdf functionality, but I am not sure.

laserK3000 avatar Feb 07 '22 18:02 laserK3000

I would like to incorporate this; I will test this approach myself when I have time, but unfortunately this is a rather low-priority project for me at the moment. I hope to carve a window for it in the next few months.

altaurog avatar Mar 03 '22 09:03 altaurog

@altaurog thanks for such a wonderful tool.

Do you have updates on this issue? I also have diacritics in my CSV which aren't properly filled in PDF. Thanks

rameshjes avatar Oct 16 '23 10:10 rameshjes

I tried this branch some time ago but got errors somewhere and I was not able at the time to resolve them. Unfortunately with the war here I am not able to work on this currently.

altaurog avatar Oct 23 '23 12:10 altaurog