Hello everyone,
I'm working on a program that generates interactive forms in PDF. I'd like to add a checkbox on the page but there is problem. When the checbox has focus, everything works ok. When the focus is out, the checbox loses its appearance and it is rendered in default graphics (that's incorrect for me).
You can see the problem here: http://home.zcu.cz/~struharv/000003-checkbox.pdf (it's a handmade pdf file to be easily readable). In chrome build-in viewer it works ok, but not in Acrobat.
I don't see what's wrong.
Thanks for your help.
%PDF-1.7
1 0 obj << % entry point /Type /Catalog /AcroForm << /DR 3 0 R /Fields [101 0 R] >> /Pages 2 0 R>>
endobj
2 0 obj << % Pages object /Type /Pages /MediaBox [0 0 200 200] /Count 1 /Kids [ << % Page /Type /Page /Parent 2 0 R /Resources 3 0 R /Annots [101 0 R] /Contents 5 0 R >> ]>>
endobj
101 0 obj << /Type /Annot /Subtype /Widget /Rect [70 50 120 70] /AP << /N << /Yes 108 0 R /Off 109 0 R >> >> /AS /Yes /V /Yes /FT /Btn /T (checkbox1) >>
endobj
108 0 obj << /Type /XObject /Subtype /Form /BBox [0 0 50 20] /Resources 3 0 R>>
stream 0 0 50 20 re 0.8 g f BT /F1 12 Tf 0 g 7 5.908 Td (checked) Tj ET
endstream
endobj
109 0 obj << /Type /XObject /Subtype /Form /BBox [0 0 50 20] /Resources 3 0 R>>
stream 0 0 50 20 re 0.6 g B BT /F1 12 Tf 0 g 7 5.908 Td (unchecked) Tj ET
endstream
endobj
3 0 obj << % Resources /Font << /F1 4 0 R >>>>
endobj
4 0 obj << % Font /Type /Font /Subtype /Type1 /BaseFont /Times-Roman>>
endobj
5 0 obj << % page content>>
stream BT 70 150 TD /F1 12 Tf (Hello, world!) Tj ET
endstream
endobj
trailer
<< /Root 1 0 R>>
%%EOF