Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
checkbox creation |
Post Reply
|
| Author | |
pallavi
Beginner
Joined: 24 Mar 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: checkbox creationPosted: 25 Mar 10 at 10:17AM |
|
how to create checked chekbox?
i have read functions but i m not getting which functions to be used for creation of chekbox? |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 6:42AM |
|
Hi Pallavi!
Please read here: http://www.quickpdflibrary.com/help/quickpdf/FormFields.php Have a look at SetForm... Cheers and welcome here, Ingo |
|
![]() |
|
pallavi
Beginner
Joined: 24 Mar 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 6:46AM |
|
hello,
i have used following code but it doesn'r create checkbox marked with checked $iDf6 = $qp->NewFormField("male", 3); $qp->SetFormFieldValue($iDf6, "1"); $qp->SetNeedAppearances(1); $qp->SetFormFieldCheckStyle($iDf6,1,1); |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 6:49AM |
|
Have you tried setting the border color as well using SetFormFieldBorderColor? If you don't give the check box form field a border color, it will be white and not visible...
Something like the below for a black border: $iDf6 = $qp->NewFormField("male", 3); $qp->SetFormFieldValue($iDf6, "1"); $qp->SetFormFieldCheckStyle($iDf6,1,1); $qp->SetFormFieldCheckStyle($iDf6,0,0,0); $qp->SetNeedAppearances(1); Edited by Rowan - 26 Mar 10 at 6:51AM |
|
![]() |
|
pallavi
Beginner
Joined: 24 Mar 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 10:27AM |
|
hello,
i have tried as yu said but still it doesn't create chekbox pls help me to figure out this code $iDf6 = $qp->NewFormField("male", 3); $qp->SetFormFieldValue($iDf6, "1"); $qp->SetFormFieldCheckStyle($iDf6,1,1); $qp->SetFormFieldBorderColor($iDf6,0,0,0); $qp->SetNeedAppearances(1); |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 7:37PM |
|
Actually, I missed another problem with your original code. You need to use the SetFormFieldBounds function to set the location of the check box on the page as well as the height and width of the check box, without calling this function, nothing will be drawn onto the page.
So this should work: $iDf6 = $qp->NewFormField("male", 3); $qp->SetFormFieldValue($iDf6, "1"); $qp->SetFormFieldBounds($iDf6, 100, 400, 23, 23); $qp->SetFormFieldCheckStyle($iDf6,1,1); $qp->SetFormFieldBorderColor($iDf6,0,0,0); $qp->SetNeedAppearances(1); The SetFormFieldValue function can be used to turn on or off the check box (i.e. check, uncheck). Turn On $qp->SetFormFieldValue($iDf6, "Yes"); Turn Off $qp->SetFormFieldValue($iDf6, "No"); Hope this helps! |
|
![]() |
|
pallavi
Beginner
Joined: 24 Mar 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 Mar 10 at 6:03AM |
|
Hello,
Thanks very much for your help. it successfully create checkbox. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store