<table><tr><td style="">aheinecke added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10932">View Revision</a></tr></table><br /><div><div><p>Reset-Form Actions are specified in Adobe's PDF Reference as:</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>A reset-form action resets selected interactive form fields to their default values;<br />
that is, it sets the value of the V entry in the field dictionary to that of the DV entry<br />
(see Table 8.69 on page 675). If no default value is defined for a field, its V entry is<br />
removed. For fields that can have no value (such as pushbuttons), the action has<br />
no effect.</p></blockquote>
<p>It can further be specified in that action which fields to reset.</p>
<p>IMO a reset should be implemented in Popper by adding a "reset" function to fields, which takes the default value into account. This could then save us from having to propagate the default value through the layers.</p>
<p>This does not appear to necessarily be undoable (Foxit does not appear to have it undoable either).</p>
<p>My plan for this would be to implement the Reset Form FormAction. Then create a "Fixed" QAction which uses a virtual FormAction that would affect all fields.</p>
<p>The behavior could be tested against the reset action of a button and mimic the behavior of Acrobat Reader.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10932">https://phabricator.kde.org/D10932</a></div></div><br /><div><strong>To: </strong>ahmadosama, Okular, aacid<br /><strong>Cc: </strong>aheinecke, rkflx, cfeck, ngraham, aacid, Okular<br /></div>