The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

josie (7) [Avatar] Offline
#1
We have big problems with Hungarian forms.These forms are filled out on client-side by a person. If the form is filled out, the person clicks the button "send form". Behind this button lies the JavaScript-command "submitForm", which is responsible for sending a FDF to the server. The FDF arriving at the server is encoded in utf-8 with an encoding cue after the URL (/Encoding/utf-smilie. This FDF cannot be read by iText.

It seems that iText cannot work with this general encoding cue but needs encoding cues for each non-Latin1-field-name and each non-Latin1-field-content separately. We created such a FDF by encoding the complete FDF in utf-16 with the encoding cue "þÿ" before each field-name and each field-value. In this case iText works fine, but double-clicking an the FDF leads to a partially empty PDF.

How to create a FDF which can be read by iText and Acrobat? One way is to use the Acrobat-command "Daten exportieren". In this case only field-names and field-contents with special characters are encoded in utf-16 with the cue "þÿ" before the utf-16-coded field-names and field-contents. But this way is not possible for us, because we must use the JavaScript-command "submitForm".

Does anybody see a way to produce a FDF over "submitForm" which can be read by iText and Acrobat?
blowagie (284) [Avatar] Offline
#2
Re: iText and Acrobat cannot work together if unicode-forms are used
I've never experienced this problem.
I'll forward it to the mailing list.
blowagie (284) [Avatar] Offline
#3
Re: iText and Acrobat cannot work together if unicode-forms are used
See:
http://www.nabble.com/FDF-and-Unicode-tf4842618.html
or
http://article.gmane.org/gmane.comp.java.lib.itext.general/34440
It's a very odd problem. We'd have to see the PDF to understand what goes wrong.
josie (7) [Avatar] Offline
#4
Re: iText and Acrobat cannot work together if unicode-forms are used
How can I send you PDFs and FDFs?
blowagie (284) [Avatar] Offline
#5
Re: iText and Acrobat cannot work together if unicode-forms are used
Use the mailing list and/or nabble
itext-questions@lists.sourceforge.net
blowagie (284) [Avatar] Offline
#6
Re: iText and Acrobat cannot work together if unicode-forms are used
Meanwhile there's a response from the Adobe Forms team. They answered:

There is an /Encoding key in the FDF dictionary. See implementation note # 129: “The only Encoding value supported by Acrobat 4.0 is Shift−JIS. Acrobat 5.0 supports Shift−JIS, UHC, GBK, and BigFive. If any other value is specified, the default, PDFDocEncoding, is used.”
josie (7) [Avatar] Offline
#7
Re: iText and Acrobat cannot work together if unicode-forms are used
Dear Mr. Lowagie,

I have sent the FDFs to the mailing-list (itext-questions@lists.sourceforge.net). Mr Kalpesh answered me that the a2z-Office is closed until Monday. So perhaps you get the mail not b efore Monday.
blowagie (284) [Avatar] Offline
#8
Re: iText and Acrobat cannot work together if unicode-forms are used
I don't know Mr. Kalpesh.
Apparently it's a mailing list subscriber who has his Out-of-the-Office reply on.
Your question reached the mailing list, and it is archived on these (and other) places:
http://www.nabble.com/Problems-with-Hungarian-Forms-tf4855167.html
http://article.gmane.org/gmane.comp.java.lib.itext.general/34484
Normally Paulo or Leonard will answer.
I'm currently following a seminar (today and tomorrow) and on Saturday, I have to give a presentation, so I don't have the time to look at the problem right now.