Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Does Acrobat FDF file support Chinese characters?

Community Beginner ,
Jul 08, 2021 Jul 08, 2021

I want to import FDF file which cantains Chinese characters into PDF file. But there is problem of Chinese disorderly code after importing. I know XFDF file supports Chinese characters. Can anyone confirm that FDF file doesn't support Chinese characters? Thanks.

1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
LEGEND ,
Jul 09, 2021 Jul 09, 2021
LATEST

Tip: notice the first two characters in the string after (. These are similar to "by" but they are not these actual characters, they are "þÿ") These are the BOM (byte order mark meaning the characters are UCS-2). This makes sense because the syntax of FDF objects is just the same as PDF.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2021 Jul 08, 2021

Try this:

fill in the form with Chinese characters

export an FDF

close the PDF without saving 

open the PDF 

import the FDF

Does it work? I think it will work. However, you will have to match the encoding of the font in this particular PDF, which won't be anything as simple as Unicode. This may be so challenging that XFDF is a much better option.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 09, 2021 Jul 09, 2021

Thanks for your response. Yes, it works. In the exported FDF file, there is still issue of Chinese disorderly code. Please see below.

char.png

What I needed is importing FDF created by Python. Do you have any idea what encoding type should I need to use in FDF? Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2021 Jul 09, 2021

This code looks like escaped UCS-2. This is standard, but no ordinary text editor will make it mixed with non-Unicode in this way, you need to write software.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 09, 2021 Jul 09, 2021

Oh no. Do you mean Adobe PDF supports only FDF with escaped UCS-2 encoding type when FDF contains Chinese characters? Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2021 Jul 09, 2021

I think that must be correct. A better situation than I said originally. Is there a problem with this? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 09, 2021 Jul 09, 2021

Yes since I need to merge FDF into PDF via Python automatically instead of manually. And it works fine for FDF without Chinese characters. Anyway thank you so much for your responses.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2021 Jul 09, 2021
LATEST

Tip: notice the first two characters in the string after (. These are similar to "by" but they are not these actual characters, they are "þÿ") These are the BOM (byte order mark meaning the characters are UCS-2). This makes sense because the syntax of FDF objects is just the same as PDF.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines