Check Box Field

Check Box Field

Forum member · Aug 2, 2010
I am iterating through form fields which is having textboxes, radiobuttons, check boxes. I am printing type of each field on PDF template using GetType() method. But for check box and radio buttons I am getting type as ButtonField. What should I need to be done to get Exact Type for controls like Check box and Redio Button.

Re: Check Box Field

Support · Aug 2, 2010
Hello, You can look at the FormFieldReader example that is downloaded with the product download. It shows how to retrieve the type of form fields on the PDF. Radio button, Push button and check box are types of PdfButtonField. To distinguish between them, you would need to use ForlmFieldFlags. Below is the code snippet: if(pdfFormField is PdfButtonField) { if((pdfFormField.Flags & FormFieldFlags.Radio) == FormFieldFlags.Radio) return "Radio Button Field"; else{ if((pdfFormField.Flags & FormFieldFlags.PushButton) == FormFieldFlags. PushButton) return "Push Button Field"; else return "Check Box Field"; } }

Re: Check Box Field

Forum member · Aug 3, 2010
Which PDF forms template are supported by Dynamic PDF? When I iterate through one PDF template which is for Indian Passport application form then I am getting form.Fieilds.Count as 0. What is the reason?

Re: Check Box Field

Forum member · Aug 3, 2010
Thanks for previous reply. We need to use ceTe.DynamicPDF.Forms namespace to get FormFieldFlags.

Re: Check Box Field

Support · Aug 3, 2010
Hello, You can merge any PDF document and loop through its form fields without any problem using our product. You may also have to check for the child fields and loop through the Childs to access the fields. If the field count is zero, then it means that the PDF has no form fields in it. Can you please double check that you are using a PDF having form fields? If you see any problem then please send over the PDF document and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further. Yes, the FormFieldFlags enum is available in ceTe.DynamicPDF.Forms namespace. Thanks, ceTe Software Support Team.

Re: Check Box Field

Forum member · Aug 3, 2010
I have posted mail with the PDF as an attachment on the id given by you to support team. Please look into it.

Re: Check Box Field

Forum member · Aug 4, 2010
If there is container field in the pdf form then count for Form.Fields is coming as 1 only. It is not iterating through rest of the controls in PDF form. What is the solution for the same?

Re: Check Box Field

Support · Aug 4, 2010
Hello, You will have to check if the field has child fields and then you can iterate through Childs without any problem. You can check for child fields by using the HasChildFields method of the FormField, and you can access them by using the ChildFields property. Our product do not iterate automatically through all levels of fields. You will have to do it by checking if the field has Childs. You can also refer to the FormFieldReader example downloaded along with the product download which does this. Thanks, ceTe Software Support Team.

Re: Check Box Field

Forum member · Aug 4, 2010
Thank I hv used HasChildFields and its working for me. Now I am able to iterate through. I have some Qs 1) PDF to XML is it possible? 2) Maximum size supported 3) For Concurrent user how the performance will affect? 4) PDF viewer component i.e. OCX is it available with evaluation version? If yes then how I can get thet? Right now I v6.0 on my machine? But I m unable to get OCX file.

Re: Check Box Field

Support · Aug 4, 2010
Hello, Currently none of our products support converting PDF to XML. We do not impose any limits to the size of output PDF file that can be created using the API. The API is designed to allow concurrent users to use it and its thread-safe. You will have to download DynamicPDF Viewer product to get access to the OCX file. It is not part of the Core Suite installer. DynamicPDF Viewer is a seperate product. Thanks, ceTe Software Support Team