You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a RadioCheckField of type TYPE_CROSS with a border results in the border being visible in Acrobat Reader but not in the Google Chrome PDF viewer.
The form field widget contains /BS<</S/S/W 1>> and /MK<</BC[0 0 0]/CA(8)>>, i.e. a border style of a stroked border with a width of one unit and a border color of RGB black. Thus, a PDF processor generating the appearance by itself, should draw a border.
The appearance streams of the widget, on the other hand, do not contain instructions to draw a border. Thus, a PDF processor relying on the supplied appearance, will not draw a border.
The appearance streams look as follows.
For the on state:
q 0 0 0 rg 1 w 0 0 0 RG 1 1 48 48 re W n 2 48 m 48 2 l 48 48 m 2 2 l s Q
The rectangle here explicitly is not drawn, using the n instruction neither fills nor strokes.
For the Off state:
q 0 0 0 rg 1 w 0 0 0 RG 1 1 48 48 re W Q
Here there actually is a syntax error, between W and Q there should have been a path drawing instruction but is not.
Creating a
RadioCheckField
of typeTYPE_CROSS
with a border results in the border being visible in Acrobat Reader but not in the Google Chrome PDF viewer.To Reproduce
Code to reproduce the issue
Expected behavior
The checkbox border should be visible in the Google Chrome PDF viewer.
Screenshots
checkbox.pdf
System
Thank you,
Lucian Chirita
The text was updated successfully, but these errors were encountered: