0 Replies Latest reply on Aug 9, 2008 8:41 PM by (Tim_Roller)

    Open pdf in browser using xfdf from asp

      I am attempting to open and fill with data a form created with Acrobat Pro 8.  I have created a test form with 2 fields and exported to an xfdf file.  I used the xfdf file to create an asp page that is supposed to open the form, filling the fields with the data specified in the xfdf.  When I open the asp page in my browser, Acrobat opens (not the IE plugin), with an error message that it cannot open the file.  It is either damaged or is not a supported file type.  I will include the xfdf file below and my asp page.  My question is, should this work?  And if so, what am I missing? If not, what format file/content-type do I need to use this method - FDF?  Thanks in advance for any help.<br /><br />My test machine is XP and IIS - Acrobat is 8 pro - ASP is vbscript<br /><br />The original xfdf file:<br /><?xml version="1.0" encoding="UTF-8"?><br /><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><br /><fields><br /><field name="Address"><br /><value>23 Ridge Ave</value><br /></field><field name="Name"><br /><value>Bob Smith</value><br /></field><br /></fields><br /><ids original="68ECBEB4D7F1984F9136D032C2F70874" modified="6A4B97BDCEF94142B2FC6D8C9A79EE53"/><br /><f href="Document.pdf"/><br /></xfdf><br /><br />My asp file:<br /><%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><br /><%<br />Response.Buffer = true<br /><br />Response.ContentType = "application/vnd.adobe.xfdf" <br /><br />Response.Write "<?xml version=""1.0"" encoding=""UTF-8""?>"<br />Response.Write "<xfdf xmlns=""http://ns.adobe.com/xfdf/"" xml:space=""preserve"">"<br />Response.Write "<fields>"<br />Response.Write "<field name=""Address"">"<br />Response.Write "<value>23 Ridge Ave</value>"<br />Response.Write "</field><field name=""Name"">"<br />Response.Write "<value>Bob Smith</value>"<br />Response.Write "</field>"<br />Response.Write "</fields>"<br />Response.Write "<ids original=""68ECBEB4D7F1984F9136D032C2F70874"" modified=""6A4B97BDCEF94142B2FC6D8C9A79EE53""/>"<br />Response.Write "<f href=""http://localhost/state/document.pdf""/>"<br />Response.Write "</xfdf>"<br />Response.Flush <br />Response.End <br />%>