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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
matt.smokeball  
#1 Posted : Tuesday, December 4, 2018 4:18:15 AM(UTC)
Quote
matt.smokeball

Rank: Member

Groups: Registered
Joined: 4/15/2018(UTC)
Posts: 24
Man
Australia
Location: Sydney

Thanks: 2 times
Hello,

I've got a problem where an external PDF has a field with a value that is formatted (e.g. Number or Percentage). When I open the PDF the first time this formatting is applied (e.g. 14.00, 200.00%) but if I change the value and remove focus from the field the formatting won't be applied (e.g, 15).

It looks like this formatting comes from the additional-action item in the field dictionary (AA) and I've tried using the Pdfium.FORM_DoDocumentAAction method to enforce this formatting with little success.

Have you got any pointers?

Many thanks!
Paul Rayman  
#2 Posted : Tuesday, December 4, 2018 4:40:17 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Could you please provide this document?
matt.smokeball  
#3 Posted : Tuesday, December 4, 2018 7:29:19 PM(UTC)
Quote
matt.smokeball

Rank: Member

Groups: Registered
Joined: 4/15/2018(UTC)
Posts: 24
Man
Australia
Location: Sydney

Thanks: 2 times
CCCO0007 with sum calc.pdf (27kb) downloaded 18 time(s).

Hi Paul,

Document attached. The second field is formatted as a percentage and the third field as a number (also a calculation, being the sum of the first two fields).

Thanks!
Paul Rayman  
#4 Posted : Tuesday, December 4, 2018 8:30:54 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
I have tried your document with both WPF and WinForms PDF viewer. These works fine. I can't reproduce the issue. Could you please provide the steps to reproduce it. Maybe a simple test application...



PS. You should not call Pdfium.FORM_DoDocumentAAction or something like this.
The support for acro forms already enabled in the viewers by default.
matt.smokeball  
#5 Posted : Wednesday, December 5, 2018 2:06:06 PM(UTC)
Quote
matt.smokeball

Rank: Member

Groups: Registered
Joined: 4/15/2018(UTC)
Posts: 24
Man
Australia
Location: Sydney

Thanks: 2 times
A test app might be a bit tricky. It must be something in our code, I'll have to keep digging for now.

Thanks for your help!
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.