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

Notification

Icon
Error

Options
Go to last post Go to first unread
Kevin Parkes  
#1 Posted : Wednesday, June 21, 2023 12:46:37 PM(UTC)
Kevin Parkes

Rank: Newbie

Groups: Registered
Joined: 3/2/2023(UTC)
Posts: 2
United Kingdom

I recently upgraded from v4.50 to v4.81.

Previously, I was getting combobox values using the following:
control.Field.Options.ToDictionary(x => x.Label, y => y.Value);

I've changed that to:
(control.Field as PdfComboBoxField)?.Items.ToDictionary(i => i.Name, i => i.Value);

But I'm finding all values are null and what I expected to be the values are appearing in Name.
I am doing something wrong or could this be a bug in Pdfium?
Paul Rayman  
#2 Posted : Thursday, June 22, 2023 9:34:20 AM(UTC)
Paul Rayman

Rank: Administration

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

Thanks: 7 times
Was thanked: 128 time(s) in 125 post(s)
Hello,

Value is the option’s export value to be used when exporting interactive form field data from the
document; and the Name is a text to be displayed to the user in the viewer application.

If this is not the case for you, please send the PDF document and your code to support@patagames.com
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.