<table><tr><td style="">aacid 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/D10048" rel="noreferrer">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D10048#202336" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D10048#202336</a>, <a href="https://phabricator.kde.org/p/aheinecke/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;" rel="noreferrer">@aheinecke</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>I had another look at this and I could not get it to work with refreshPixmaps and I don't understand how the FormWidget should be updated if the text of the underlying FormField changes. The only setTexts I see in the FormWidgets are in the Ctor or in the "slotHandleTextChangedByUndoRedo" I'm probably overlooking something :-/</p>

<p>So I tried it out and added another Field "JSSum" to the example PDF I'm using <a href="https://phabricator.kde.org/F5696675" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5696675: simple_calculate.pdf</a> which had a calculate script that modified a field value through a JavaScript assignment and it also did not work there: <a href="https://phabricator.kde.org/F5696683" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5696683: calculate-not-working.gif</a> So maybe there was a regression at some point?</p>

<p>Could you attach a sample PDF where this is working?</p></div>
</blockquote>

<p><a href="https://www.revenue.wi.gov/dorforms/2016-Form1f.pdf" class="remarkup-link" target="_blank" rel="noreferrer">https://www.revenue.wi.gov/dorforms/2016-Form1f.pdf</a></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>Sorry I don't want to create additional work for you but I did not find one by searching for related bugs in BKO.</p>

<p>The Versions I tried were unmodified master (<a href="https://phabricator.kde.org/R223:e06883d102f06bf99ffcf29845fcc4e3e0622d62" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">e06883d10</a>) and Okular 0.26.1 which I have from my debian distro.</p>

<p>To be clear:<br />
 I'm still planning to make changes to this revision but I first want to figure out if there is an already working update mechanism between FormField and FormWidget that I have overlooked or if the one that was in place needs a fix.</p></blockquote>

<p>Well you need the refresh pixmaps for sure, because at least right now when hiding the forms the image of the pdf has the wrong value, so that needs fixing.</p>

<p>As for the difference with the pdf i linked, i think i see the difference, the ones you linked the all the widgets are  so you need to update the "result" widgets values.</p>

<p>Could you explore getting that value from the core of poppler and not setting the value in the ui manually? I mean if you force a pixmap refresh (by zooming in/out) the values of the rendered "image" update correctly so somewhere something knows the value changed. I'd prefer using that over going manually and setting the value "again"</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>Thanks,<br />
Andre</p></blockquote>

</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/D10048" rel="noreferrer">https://phabricator.kde.org/D10048</a></div></div><br /><div><strong>To: </strong>aheinecke, Okular<br /><strong>Cc: </strong>aacid, michaelweghorn, ngraham<br /></div>