Hi Team,
 Please refer to the link PDF [
https://drive.google.com/file/d/17XoTxgGSrn9-XMpZsSqhNanzTW6UBCmg/view?usp=sharing
].
Thanks
Damaji.

On Wed, Aug 17, 2022 at 9:46 PM Gilad Denneboom <gilad.denneb...@gmail.com>
wrote:

> You can't attach files directly here. Upload it to a file-sharing website
> (like Google Drive) and post a link to it.
>
> On Wed, Aug 17, 2022 at 10:11 AM Damaji Kalunge <dam...@technogise.com>
> wrote:
>
> > Hi Team,
> >
> > I have attached the PDF itself.
> >
> >  Requirement is tick the sex checkbox based on its possible values like
> *male,
> > female,  **unspecified*, "i*ndeterminate"  and  "i**ntersex *" .
> >    Facing issue for "i*ndeterminate"  and  "i**ntersex *"  with below
> > code.
> >
> > COSDictionary
> cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject();
> > cosDictionary3.setString(COSName.V ,"unspecified");
> >
> > Thanks
> > Damaji.
> >
> > On Wed, Aug 17, 2022 at 1:10 PM sahy...@fileaffairs.de <
> > sahy...@fileaffairs.de> wrote:
> >
> >> Hi Damaji,
> >>
> >> the attachment didn't make it through - can you upload that somewhere
> >> or even better the PDF in question?
> >>
> >> BR
> >> Maruan
> >>
> >> Am Mittwoch, dem 17.08.2022 um 13:03 +0530 schrieb Damaji Kalunge:
> >> > HI Team,
> >> >
> >> >   There is confusion around how CheckboxPDF Field is in PDF. I have
> >> > attached screenshot  . Please refer to it.
> >> >   This is group checkbox field with one PDF Field name "app.sex".
> >> >   Requirement is to set the each checkbox based on its value.
> >> >
> >> >  Chosen  below  way  to fill PDF because it is encrypted.
> >> >   Below code is working fine for male, female and unspecified
> >> > COSDictionary
> >> > cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject();
> >> > cosDictionary3.setString(COSName.V ,"unspecified");
> >> >   but it is not working for "indeterminate"  and  "intersex "  means
> >> > the checkbox are ticked.
> >> >
> >> >  Could you please help out ?
> >> >
> >> >
> >> > Thanks
> >> > Damaji.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Aug 17, 2022 at 12:40 PM sahy...@fileaffairs.de
> >> > <sahy...@fileaffairs.de> wrote:
> >> > >
> >> > > reading a little further (and not being able to see the image) I'm
> >> > > guessing that there is a single checkbox which you can tick if the
> >> > > person has one of the three potential states. But that's not
> >> > > possible
> >> > > to as a checkbox can only hold a value for unchecked (default OFF)
> >> > > and
> >> > > one for checked. So checking by providing one of the three values
> >> > > and
> >> > > also capturing that is not possible.
> >> > >
> >> > > You should use a List field in that case or a group of radio
> >> > > buttons or
> >> > > have a hidden field where you in addition to checking the checkbox
> >> > > hold
> >> > > the value of what checked means.
> >> > >
> >> > > BR
> >> > > Maruan
> >> > >
> >> > >
> >> > > Am Mittwoch, dem 17.08.2022 um 08:54 +0200 schrieb
> >> > > sahy...@fileaffairs.de:
> >> > > > In addition,
> >> > > >
> >> > > > are you sure that Indeterminate or Intersex are the potential
> >> > > > values
> >> > > > defined for the checkbox(es). The visible text is not what
> >> > > > determines
> >> > > > the potential values fo rthe checked/unchecked state. Also it's
> >> > > > unusual
> >> > > > that a checkbox has 3 potenmtial values as it's either checked or
> >> > > > unchecked.
> >> > > >
> >> > > > If you upload the the PDF to a shared location I can take a look.
> >> > > >
> >> > > > BR
> >> > > > Maruan
> >> > > >
> >> > > >
> >> > > >
> >> > > > Am Mittwoch, dem 17.08.2022 um 08:41 +0200 schrieb Tilman
> >> > > > Hausherr:
> >> > > > > Hi,
> >> > > > >
> >> > > > > If this is really a PDCheckBox then call check() or uncheck().
> >> > > > > I
> >> > > > > can't
> >> > > > > see the image, maybe this was an attachment.
> >> > > > >
> >> > > > > Tilman
> >> > > > >
> >> > > > > Am 17.08.2022 um 08:26 schrieb Damaji Kalunge:
> >> > > > > > Hi Team,
> >> > > > > >
> >> > > > > >   In the editable PDF we have a checkbox as shown below.
> >> > > > > > image.png
> >> > > > > >
> >> > > > > > *Indeterminate / Intersex / Unspecified []*
> >> > > > > > *
> >> > > > > > *
> >> > > > > >    We are able to check the above checkbox using below code
> >> > > > > > and
> >> > > > > > only
> >> > > > > > with value "*unspecified" .
> >> > > > > > * Then only the checkbox is ticked in the filled PDF.
> >> > > > > > COSDictionary
> >> > > > > > cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject();
> >> > > > > > cosDictionary3.setString(COSName.V ,"unspecified");
> >> > > > > > **
> >> > > > > >   We have requirement to set the checkbox value
> >> > > > > > *Indeterminate or
> >> > > > > > **Intersex * then by with value  "i*ndeterminate"  or
> >> > > > > > "i**ntersex
> >> > > > > > *"
> >> > > > > > does not ticked the checkbox in the filled PDF.
> >> > > > > >
> >> > > > > >  I am afraid if we set  the last value to PDF Checkbox then
> >> > > > > > downstream
> >> > > > > > processing may have an impact which is not in our control
> >> > > > > > to fix
> >> > > > > > or
> >> > > > > > analyze.
> >> > > > > >
> >> > > > > > Could you please help out in this scenario ?
> >> > > > > >
> >> > > > > > Thanks
> >> > > > > > Damaji.
> >> > > > > >
> >> > > > > > *
> >> > > > > > *
> >> > > > >
> >> > > >
> >> > >
> >> > >
> >> > > -------------------------------------------------------------------
> >> > > --
> >> > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> >> > > For additional commands, e-mail: users-h...@pdfbox.apache.org
> >>
> >> --
> >> --
> >> Maruan Sahyoun
> >>
> >> FileAffairs GmbH
> >> Josef-Schappe-Straße 21
> >> 40882 Ratingen
> >>
> >> Tel: +49 (2102) 89497 88
> >> Fax: +49 (2102) 89497 91
> >> sahy...@fileaffairs.de
> >> www.fileaffairs.de
> >>
> >> Geschäftsführer: Maruan Sahyoun
> >> Handelsregister: AG Düsseldorf, HRB 53837
> >> UST.-ID: DE248275827
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> >> For additional commands, e-mail: users-h...@pdfbox.apache.org
> >>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > For additional commands, e-mail: users-h...@pdfbox.apache.org
>

Reply via email to