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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - checkbox creation
  FAQ FAQ  Forum Search   Register Register  Login Login

checkbox creation

 Post Reply Post Reply
Author
Message
pallavi View Drop Down
Beginner
Beginner


Joined: 24 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote pallavi Quote  Post ReplyReply Direct Link To This Post Topic: checkbox creation
    Posted: 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
pallavi View Drop Down
Beginner
Beginner


Joined: 24 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote pallavi Quote  Post ReplyReply Direct Link To This Post 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);
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pallavi View Drop Down
Beginner
Beginner


Joined: 24 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote pallavi Quote  Post ReplyReply Direct Link To This Post 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);
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
pallavi View Drop Down
Beginner
Beginner


Joined: 24 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote pallavi Quote  Post ReplyReply Direct Link To This Post Posted: 29 Mar 10 at 6:03AM
Hello,
Thanks very much for your help.
it successfully create checkbox.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store