cfPDFForm XML Problem
I've got an XFA form that submits to CF 8. I read the form into an XML object, resize some images, change a couple of form field values and then try to write the file to a server. I run into a problem with text data coming from one the fields. When I try to use this XML object to populate the data when I write the PDF to disk I get an XML parsing error. I've tried converting the XML Object to a string before saving the PDF to no avail. I use the same PDF that was received as the source for the one I'm writing so I know it should be able to handle all the form fields.
I think the problem is caused by CR/LFs in the data. These are stored in ASCII and then converted into hex in the XML. The problem is that the Hex representation contains a single pound (#) sign and that may be causing the conversion error. I've tried escaping all #s in the string version of the XML object and it shows as valid XML. I've tried it with data that is typed into all the fields and it works. The first two QA testers both ran into this problem so I need to find a fix.
Has anyone else run into this problem?
Thanks in advance,
Kevin