Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADOBE XFDF XML corrupt.

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
I've made a basic PDF form with two input fields (firstname, lastname) and a submit button.
I'm doing this in Adobe DC. On the mouse up trigger on the submit button the form is submitted
as an XFDF (XML)file to a test site URL and subsequently saved to a filename "testpdf.xfdf"
When I look into the saved file all the XML lines look like the XML (see "code xml" below.)
All lines are wrapped just prior to the close tag.
I'm saving the file as shown in the asp.net code below.

Any Ideas or should this go to the asp.net arena?

Thanks

-dan


Code:
       Dim inputBytes(Request.InputStream.Length) As Byte
        Request.InputStream.Read(inputBytes, 0, inputBytes.Length)
        System.IO.File.WriteAllBytes(Filename, inputBytes)


XML:
<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="[URL unfurl="true"]http://ns.adobe.com/xfdf/"[/URL] xml:space="preserve"
><annots
/><fields
><field name="BtnSubmt"
/><field name="FirstName"
><value
>Dan</value
></field
><field name="LastName"
><value
>Ashley</value
></field
></fields
><ids original="5320E013855C8543914F7BCB60008DF9" modified="F9FE0FB2C5D4314D8DF3551DD2B769EC"
/><f href="/C/Users/Dashley/Documents/Adobe/contactusmstr.pdf"
/></xfdf
>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top