I am sharing my reply from the support ticket on the same topic:
Image fields are represented in the PDF document model as PushButtonField
were you can vote to increase the priority and subscribe to be notified for any status updates.
However, you can set the IconSource
properties of the PushButtonWidget
using the PushButtonAppearanceCharacteristics
class. For example:
(Stream imageStream =
FormSource formSource =
Size = size
FixedContentEditor formEditor =
widget.AppearanceCharacteristics.IconAndCaptionPosition = IconAndCaptionPosition.NoCaptionIconOnly;
widget.AppearanceCharacteristics.IconFitOptions.ScalingType = IconScalingType.FitExactly;
widget.AppearanceCharacteristics.NormalIconSource = formSource;
I hope the above-suggested approach will help you implement the desired goal.