Hi,
> Am 17.01.2017 um 10:16 schrieb Bharat Bhatt <[email protected]>:
> 
> I am using PDFBOX api to create the PDF document. I have to show DatePicker
> in PDF with same feature as in any form.

there is no such thing like a DatePicker in PDF as well as there is no date 
field type. You can add JavaScript to a field to ensure that only valid dates 
can be entered but this will be regular text input.

You might have seen a DatePicker in a PDF but thats very likely an XFA form 
done using Adobe LiveCycle Designer. In this case PDF is only a shell with an 
embedded XML Form Object in it (XFA). XFA does provide a date field and Adobe 
Reader/Acrobat will show a date picker component for that. But this would mean 
that you have to create an XFA Form whch is something totally different to a 
PDF form.

BR
Maruan

> 
> 
> Thanks,
> Bharat
> 
> On Tue, Jan 17, 2017 at 1:41 PM, Tilman Hausherr <[email protected]>
> wrote:
> 
>> Am 17.01.2017 um 08:12 schrieb Bharat Bhatt:
>> 
>>> Thanks for quick response. Some input or direction or example I can refer
>>> to create Date component.
>>> 
>> 
>> One can only guess what you mean. You didn't tell whether it is input or
>> output. I'd assume you mean input. You can use an ordinary text field as
>> shown in the CreateSimpleForm.java example. Or use three text fields
>> separated by "." or "/" or whatever you want.
>> 
>> If you want more, then you'd have to know and tell what you want. Or link
>> to an existing PDF that has what you want.
>> 
>> Tilman
>> 
>> 
>> 
>> 
>>> Thanks,
>>> Bharat
>>> 
>>> On Tue, Jan 17, 2017 at 12:31 PM, Tilman Hausherr <[email protected]>
>>> wrote:
>>> 
>>> Am 17.01.2017 um 07:52 schrieb Bharat Bhatt:
>>>> 
>>>> Hi,
>>>>> 
>>>>> How to create Date component in PDF ? Which api I can use it?
>>>>> 
>>>>> Thanks,
>>>>> Bharat
>>>>> 
>>>>> 
>>>>> There isn't. You have to do this yourself.
>>>> 
>>>> Tilman
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>> 
>>>> 
>>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to