logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
leonv  
#1 Posted : Friday, July 9, 2021 1:05:17 AM(UTC)
leonv

Rank: Newbie

Groups: Registered
Joined: 5/9/2021(UTC)
Posts: 4
Australia

Was thanked: 1 time(s) in 1 post(s)
I'm investigating an issue with an app that uses Pdfium.Net to view PDFs. After certain changes that included upgrading Pdfium from 4.6.2704 to 4.54.2704, it stopped evaluating scripted fields in PDF. Not sure what to look for... What would be a way to disable that in Pdfium?

Any ideas much appreciated.

Edited by user Friday, July 9, 2021 2:45:51 AM(UTC)  | Reason: Not specified

leonv  
#2 Posted : Tuesday, July 13, 2021 9:19:08 PM(UTC)
leonv

Rank: Newbie

Groups: Registered
Joined: 5/9/2021(UTC)
Posts: 4
Australia

Was thanked: 1 time(s) in 1 post(s)
We found the cause. We’re using PdfInteractiveForms.GetPageControls() from the UI thread to get a collection of the controls to be used later from the thread pool. PdfControlsCollections got IEnumerable implemented in 4.46, which changed the way the code that consumes PdfInteractiveForms.GetPageControls() (or any other methods that return PdfFieldCollections/PdfControlsCollections) works – instead of immediate evaluation, it only returned an enumerator for a later evaluation. For some reason, execution of the enumerator from a non-UI thread breaks JS evaluation.
thanks 1 user thanked leonv for this useful post.
Paul Rayman on 7/14/2021(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.