<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - How can I export a PDF form and the filled in fields to a text document?</title>
    <link>https://forums.adobe.com/community/acrobat/forms?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 06 Nov 2014 09:00:12 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-06T09:00:12Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6904607?tstart=0#6904607</link>
      <description>&lt;!-- [DocumentBodyStart:32520771-1506-4604-a242-fc90778e8248] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;There are several very basic mistakes in your code. I suggest you start by learning the core JS syntax (for example, here: &lt;a class="jive-link-external-small" href="http://www.w3schools.com/js/default.asp" rel="nofollow"&gt;JavaScript Tutorial&lt;/a&gt;), before moving on to more complex things.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:32520771-1506-4604-a242-fc90778e8248] --&gt;&lt;img src='/beacon?t=1415923062854' /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:00:12 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6904607?tstart=0#6904607</guid>
      <dc:date>2014-11-06T09:00:12Z</dc:date>
      <clearspace:dateToText>1 week 15 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6903939?tstart=0#6903939</link>
      <description>&lt;!-- [DocumentBodyStart:338f7d73-d8c2-4b63-9330-da7f11a54605] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;OK, so I tried this as a starting point, and assigned it to a button on page 3 of the form.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:4bf673a4-c84d-4854-8fbe-469e7f0b5e7d][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
p=0;
console.show();
console.clear();
for (var j = 0; j &amp;lt; this.getPageNumWords(p);j++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var word = this.getPageNthWord(p,j,false);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.println(word);
}
&lt;/pre&gt;&lt;!--[CodeBlockEnd:4bf673a4-c84d-4854-8fbe-469e7f0b5e7d]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This gives me all the words on the first page not in fields, and each word goes on a separate line.&amp;nbsp; Now, characters in the document such as "&amp;amp;" or ")" cause the rest of the word to go on the next line down.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Next, I tried this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:07a2637d-7316-480f-bd3c-0b78ba5764dd][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
console.show();
console.clear();
for (var j = 0; j &amp;lt; this.getPageNthWord(j);j++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var word = this.getPageNthWord(j,false);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.println(word);
&lt;/pre&gt;&lt;!--[CodeBlockEnd:07a2637d-7316-480f-bd3c-0b78ba5764dd]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This only gives me the first word on page 3, the page the button is placed?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I need to do is run the code and place words on one line until the code hits a keyword "var cKeyWord1 = &amp;#8220;Key1&amp;rdquo; for example?, then insert the value of field one, Start a new line in the console, restart the code where it left off until it hits the next key word "var cKeyWord2 = &amp;#8220;Key2&amp;rdquo;, insert the value of field two, add a new line, and on and on.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this possible?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:338f7d73-d8c2-4b63-9330-da7f11a54605] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 02:22:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6903939?tstart=0#6903939</guid>
      <dc:date>2014-11-06T02:22:26Z</dc:date>
      <clearspace:dateToText>1 week 22 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6901344?tstart=0#6901344</link>
      <description>&lt;!-- [DocumentBodyStart:908dd4d6-1434-422c-aff3-5a79ff4f47a6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Awesome!&amp;nbsp; I will get going on this tonight &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&amp;nbsp; &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:908dd4d6-1434-422c-aff3-5a79ff4f47a6] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:42:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901344?tstart=0#6901344</guid>
      <dc:date>2014-11-05T12:42:35Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6901191?tstart=0#6901191</link>
      <description>&lt;!-- [DocumentBodyStart:e683eef7-0edc-4c5b-a0d0-33e05f224e4d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The JavaScript API for Acrobat (and Reader) is available here: &lt;a class="jive-link-external-small" href="http://www.adobe.com/devnet/acrobat/javascript.html" rel="nofollow"&gt;JavaScript for Acrobat | Adobe Developer Connection&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What you'll basically need to do is use a loop with the getPageNthWord method of the Document object to extract the static text and then the getField method to retrieve the field objects and their values and locations. The most tricky part would be to determine where and when to insert the field values into the rest of the text. Also, you would need to find a way of exporting the final text somehow. You can't do it directly to a file (as Reader can't do that), so you might need to use some workarounds like a large text field, a dialog object, or even just the console window.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e683eef7-0edc-4c5b-a0d0-33e05f224e4d] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:40:17 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901191?tstart=0#6901191</guid>
      <dc:date>2014-11-05T12:40:17Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6901341?tstart=0#6901341</link>
      <description>&lt;!-- [DocumentBodyStart:a59ec8d4-9cbe-4f7c-8612-2894f2554acf] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I do not however, I am somewhat familiar with coding, so as long as I can interpret the language, I should be good to go.&amp;nbsp; This will be a good learning experience lol&amp;nbsp; I learn best by doing it anyway &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&amp;nbsp; As long as I have information translating the syntax, I should be OK &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a59ec8d4-9cbe-4f7c-8612-2894f2554acf] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:33:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901341?tstart=0#6901341</guid>
      <dc:date>2014-11-05T12:33:08Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6901336?tstart=0#6901336</link>
      <description>&lt;!-- [DocumentBodyStart:749e02e6-267c-431f-a350-6f50485214b9] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Do you have any experience in writing scripts for PDF files? This is quite&lt;/p&gt;&lt;p&gt;a complex task for a beginner.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:749e02e6-267c-431f-a350-6f50485214b9] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:24:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901336?tstart=0#6901336</guid>
      <dc:date>2014-11-05T12:24:53Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6901093?tstart=0#6901093</link>
      <description>&lt;!-- [DocumentBodyStart:76b5e892-1f8e-48f4-900e-25f939cba9b8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'm up for the challenge, especially if I only have to do it once and assign the script to a button &lt;span aria-label="Grin" class="emoticon-inline emoticon_grin" style="height:16px;width:16px;"&gt;&lt;/span&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Do you have any references to the command lines/scripts I would have to write?&amp;nbsp; I assume the script would have to tell adobe something like:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[Place header value here]&lt;/p&gt;&lt;p&gt;[paragraph]&lt;/p&gt;&lt;p&gt;[paragraph]&lt;/p&gt;&lt;p&gt;[place custom text here] [place field value here]&lt;/p&gt;&lt;p&gt;[paragraph]&lt;/p&gt;&lt;p&gt;[place custom text here] [place field value here]&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;etc. etc.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I could literally script to re-create the form in custom text and simply tell adobe where to place the field values?&amp;nbsp; This would be ideal, I just need to know an example of what the script would look like &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Basically this would leave the form as a graphical interface for the user, and I would only be outputting what the user entered in the form field data.&amp;nbsp; The questions would be entered again as text into the script.&amp;nbsp; I would also need to be able to generate a "yes" or "no" depending on what is checked in the radio boxes.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:76b5e892-1f8e-48f4-900e-25f939cba9b8] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:00:20 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6901093?tstart=0#6901093</guid>
      <dc:date>2014-11-05T12:00:20Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6900908?tstart=0#6900908</link>
      <description>&lt;!-- [DocumentBodyStart:d8e7c59c-26c8-41b4-9a45-91cc93e2ab3a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It might be possible with a script, but it's not going to be easy to&lt;/p&gt;&lt;p&gt;develop it, as you would have to figure out where to insert the value of&lt;/p&gt;&lt;p&gt;the form fields in the text stream of the page.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d8e7c59c-26c8-41b4-9a45-91cc93e2ab3a] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:32:25 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900908?tstart=0#6900908</guid>
      <dc:date>2014-11-05T09:32:25Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6900093?tstart=0#6900093</link>
      <description>&lt;!-- [DocumentBodyStart:8c7a863c-388e-4907-afda-0bf8e3936d08] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;OK, so this.exportAsText() KIND of works in Pro except there is no simple formatting, such as adding each item to a different line.&amp;nbsp; In adobe reader however, the button simply refuses to work. Any other suggestions?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8c7a863c-388e-4907-afda-0bf8e3936d08] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 01:01:46 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900093?tstart=0#6900093</guid>
      <dc:date>2014-11-05T01:01:46Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6900091?tstart=0#6900091</link>
      <description>&lt;!-- [DocumentBodyStart:60293567-a7b7-4b54-a5c5-78567a43e1bb] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Users are able to "Save As" a text file through adobe reader however, the only text exported are the questions in the base PDF, not the answers in the form fields.&amp;nbsp; I will try the &lt;/p&gt;&lt;ol class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;li&gt;&lt;span style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;span class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;this&lt;/span&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;.exportAsText()&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;However, I do not know if this will work in Adobe Reader...&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:60293567-a7b7-4b54-a5c5-78567a43e1bb] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 00:47:13 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900091?tstart=0#6900091</guid>
      <dc:date>2014-11-05T00:47:13Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6900108?tstart=0#6900108</link>
      <description>&lt;!-- [DocumentBodyStart:92e5570a-0c6f-4003-bb64-f145c6a4e0ae] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;How exactly are the Adobe Reader users exporting the form to TXT format?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The method to use is&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:b6b9f9c2-e8d2-4b8f-bb6c-c10140b4bc26][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
this.exportAsText()
&lt;/pre&gt;&lt;!--[CodeBlockEnd:b6b9f9c2-e8d2-4b8f-bb6c-c10140b4bc26]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This can be placed into a button that the user clicks when they have completed the form and are ready to export the text.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:92e5570a-0c6f-4003-bb64-f145c6a4e0ae] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 00:36:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6900108?tstart=0#6900108</guid>
      <dc:date>2014-11-05T00:36:00Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How can I export a PDF form and the filled in fields to a text document?</title>
      <link>https://forums.adobe.com/message/6899983?tstart=0#6899983</link>
      <description>&lt;!-- [DocumentBodyStart:e01365be-498d-413e-916e-a9add0f03040] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;OK, so I have a situation.&amp;nbsp; I need people to be able to open a reader-enabled PDF form, fill out the form fields, and then export the filled-out PDF form to a basic text document.&amp;nbsp; This seems easy since Adobe Reader can save to text.&amp;nbsp; The problem is, the answers in the form fields do not show in the text file!&amp;nbsp; Each radio button shows as yes and no, and there is no indication in the text file which one was selected.&amp;nbsp; In addition, the form fields are not exported next to the questions on the form.&amp;nbsp; I tried flattening the form in Adobe pro, and that did not work either.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;How can I create a fillable form for Adobe Reader, and then let the user export their answers AND the questions on the form to plain text?&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e01365be-498d-413e-916e-a9add0f03040] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 00:22:45 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6899983?tstart=0#6899983</guid>
      <dc:date>2014-11-05T00:22:45Z</dc:date>
      <clearspace:dateToText>1 week 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

