You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Bharat Bhatt <bh...@gmail.com> on 2017/01/27 05:51:44 UTC
Dynamic Table generation using PDFBox
Hi,
I want to create Table in PDF and on click on "+" new row will be added (as
repeatable section) .
Is there any api in PDFBOX which I can use to create dynamic table with
repeatable row (Row will be add when user click on + sign)
Thanks,
Bharat
Re: Dynamic Table generation using PDFBox
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 27.01.2017 um 07:43 schrieb Bharat Bhatt:
> Where PDTableAttributeObject class is used?
That's for tagged PDFs. These are PDF that have structure informations.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Dynamic Table generation using PDFBox
Posted by Bharat Bhatt <bh...@gmail.com>.
Where PDTableAttributeObject class is used?
Thanks,
Bharat
On Fri, Jan 27, 2017 at 11:21 AM, Bharat Bhatt <bh...@gmail.com>
wrote:
> Hi,
>
> I want to create Table in PDF and on click on "+" new row will be added
> (as repeatable section) .
> Is there any api in PDFBOX which I can use to create dynamic table with
> repeatable row (Row will be add when user click on + sign)
>
> Thanks,
> Bharat
>
Re: Dynamic Table generation using PDFBox
Posted by Karl Heinz Kremer <kh...@khk.net>.
Actually, if you know what you are doing, you can create the XFA structure
from scratch. The API documentation is available. Then all you need to do
is create the wrapper PDF using COS level functions, and add the XFA code
in the correct place. However, I would not recommend doing that. That's why
we have applications that can create XFA documents based on the layout you
create in a graphic UI.
Also, you need to consider if it's worth doing that when Adobe is actually
turning away from XFA. Your documents would have to be edited in Adobe
Acrobat or the free Adobe Reader on the desktop. Your chances of finding a
mobile application that can fill out your form are very small to
nonexistent.
I advice my clients to stay away from XFA if at all possible. Yes, you
cannot have tables that automatically expand (and other more dynamic form
elements), but the chances that somebody can actually fill the form are
much better.
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
khk@khk.net
http://www.khkonsulting.com
On Fri, Jan 27, 2017 at 4:09 AM, Maruan Sahyoun <sa...@fileaffairs.de>
wrote:
> Hi,
>
> > Am 27.01.2017 um 09:47 schrieb Bharat Bhatt <bh...@gmail.com>:
> >
> > Thanks a lot Maruan
> >
> > Do you have any sample which I can refer to create XFA form using PDXBox
> > api?
>
> it might have been misleading. To create the XFA you need to use the Adobe
> LiveCycle Designer, AEM Forms Designer or create it with an editor as this
> is XML based. If you have that XFA you could then create the PDF Wrapper
> with PDFBox and put the XFA in. Normally this is also not neccesary as the
> Adobe tools allow you to save as PDF.
>
> To create XFA PDFBox doesn't provide any mechanism, API or such.
>
> BR
> Maruan
>
> >
> > Thanks,
> > Bharat
> >
> > On Fri, Jan 27, 2017 at 12:59 PM, Maruan Sahyoun <sahyoun@fileaffairs.de
> >
> > wrote:
> >
> >> Hi,
> >>> Am 27.01.2017 um 06:51 schrieb Bharat Bhatt <bh...@gmail.com>:
> >>>
> >>> Hi,
> >>>
> >>> I want to create Table in PDF and on click on "+" new row will be added
> >> (as
> >>> repeatable section) .
> >>> Is there any api in PDFBOX which I can use to create dynamic table with
> >>> repeatable row (Row will be add when user click on + sign)
> >>
> >> dynamic rows (with form felds and such) are a functionality of XFA
> forms [
> >> https://en.wikipedia.org/wiki/XFA]. PDF acts as a wrapper and holds the
> >> XFA object which is interpreted at runtime by Adobe Reader/Acrobat and
> >> others hwo support that. Although you can use PDFBox to generate that
> >> wrapper generating the XFA is not part of it. Typically Adobe LiveCycle
> >> Designer or AEM Forms Designer is used to create such forms.
> >>
> >> BR
> >> Maruan
> >>
> >>>
> >>> Thanks,
> >>> Bharat
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> >> For additional commands, e-mail: users-help@pdfbox.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Dynamic Table generation using PDFBox
Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,
> Am 27.01.2017 um 09:47 schrieb Bharat Bhatt <bh...@gmail.com>:
>
> Thanks a lot Maruan
>
> Do you have any sample which I can refer to create XFA form using PDXBox
> api?
it might have been misleading. To create the XFA you need to use the Adobe LiveCycle Designer, AEM Forms Designer or create it with an editor as this is XML based. If you have that XFA you could then create the PDF Wrapper with PDFBox and put the XFA in. Normally this is also not neccesary as the Adobe tools allow you to save as PDF.
To create XFA PDFBox doesn't provide any mechanism, API or such.
BR
Maruan
>
> Thanks,
> Bharat
>
> On Fri, Jan 27, 2017 at 12:59 PM, Maruan Sahyoun <sa...@fileaffairs.de>
> wrote:
>
>> Hi,
>>> Am 27.01.2017 um 06:51 schrieb Bharat Bhatt <bh...@gmail.com>:
>>>
>>> Hi,
>>>
>>> I want to create Table in PDF and on click on "+" new row will be added
>> (as
>>> repeatable section) .
>>> Is there any api in PDFBOX which I can use to create dynamic table with
>>> repeatable row (Row will be add when user click on + sign)
>>
>> dynamic rows (with form felds and such) are a functionality of XFA forms [
>> https://en.wikipedia.org/wiki/XFA]. PDF acts as a wrapper and holds the
>> XFA object which is interpreted at runtime by Adobe Reader/Acrobat and
>> others hwo support that. Although you can use PDFBox to generate that
>> wrapper generating the XFA is not part of it. Typically Adobe LiveCycle
>> Designer or AEM Forms Designer is used to create such forms.
>>
>> BR
>> Maruan
>>
>>>
>>> Thanks,
>>> Bharat
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Dynamic Table generation using PDFBox
Posted by Bharat Bhatt <bh...@gmail.com>.
Thanks a lot Maruan
Do you have any sample which I can refer to create XFA form using PDXBox
api?
Thanks,
Bharat
On Fri, Jan 27, 2017 at 12:59 PM, Maruan Sahyoun <sa...@fileaffairs.de>
wrote:
> Hi,
> > Am 27.01.2017 um 06:51 schrieb Bharat Bhatt <bh...@gmail.com>:
> >
> > Hi,
> >
> > I want to create Table in PDF and on click on "+" new row will be added
> (as
> > repeatable section) .
> > Is there any api in PDFBOX which I can use to create dynamic table with
> > repeatable row (Row will be add when user click on + sign)
>
> dynamic rows (with form felds and such) are a functionality of XFA forms [
> https://en.wikipedia.org/wiki/XFA]. PDF acts as a wrapper and holds the
> XFA object which is interpreted at runtime by Adobe Reader/Acrobat and
> others hwo support that. Although you can use PDFBox to generate that
> wrapper generating the XFA is not part of it. Typically Adobe LiveCycle
> Designer or AEM Forms Designer is used to create such forms.
>
> BR
> Maruan
>
> >
> > Thanks,
> > Bharat
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Dynamic Table generation using PDFBox
Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,
> Am 27.01.2017 um 06:51 schrieb Bharat Bhatt <bh...@gmail.com>:
>
> Hi,
>
> I want to create Table in PDF and on click on "+" new row will be added (as
> repeatable section) .
> Is there any api in PDFBOX which I can use to create dynamic table with
> repeatable row (Row will be add when user click on + sign)
dynamic rows (with form felds and such) are a functionality of XFA forms [https://en.wikipedia.org/wiki/XFA]. PDF acts as a wrapper and holds the XFA object which is interpreted at runtime by Adobe Reader/Acrobat and others hwo support that. Although you can use PDFBox to generate that wrapper generating the XFA is not part of it. Typically Adobe LiveCycle Designer or AEM Forms Designer is used to create such forms.
BR
Maruan
>
> Thanks,
> Bharat
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Dynamic Table generation using PDFBox
Posted by Bharat Bhatt <bh...@gmail.com>.
Thanks a lot for quick response.
One row will be group of elements and when user clicks on "Add" row will be
painted again.
Is there any action or event I can use to paint particular section or
group again?
Thanks,
Bharat
On Fri, Jan 27, 2017 at 11:28 AM, Tilman Hausherr <TH...@t-online.de>
wrote:
> Am 27.01.2017 um 06:51 schrieb Bharat Bhatt:
>
>> Hi,
>>
>> I want to create Table in PDF and on click on "+" new row will be added
>> (as
>> repeatable section) .
>> Is there any api in PDFBOX which I can use to create dynamic table with
>> repeatable row (Row will be add when user click on + sign)
>>
>
> No, not with PDFBox, and probably not even with Boxable.
>
> I've never seen dynamic tables in a PDF like you describe. I wonder how
> this is done at the low level.
>
> Tilman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
Re: Dynamic Table generation using PDFBox
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 27.01.2017 um 06:51 schrieb Bharat Bhatt:
> Hi,
>
> I want to create Table in PDF and on click on "+" new row will be added (as
> repeatable section) .
> Is there any api in PDFBOX which I can use to create dynamic table with
> repeatable row (Row will be add when user click on + sign)
No, not with PDFBox, and probably not even with Boxable.
I've never seen dynamic tables in a PDF like you describe. I wonder how
this is done at the low level.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org