We do this professionally.  You are right though.  The community docs on
this matter are not very well documented. We tried to upload docs about
this and other issues but could not.  Over 50% of the code samples are
hard to find for PDFBox.  He core engines rock but need to get evangelists
involved too ;-)  I would love to help if someone gave me access to create
tutorials. I used to do this for Adobe as a Sr Technical evangelist and
really believe that PDFBox could benefit from the same level of love.
Having said that, it is highly possible that my own lack of understanding
is the problem to upload tutorials (Apache admins - please clarify). Most
of my problems are caused by a defective malfunction between the chair and
the keyboard ;-)

I will offer this advice for free.  You have to create an XFA data
instance and then use the API in the prescribed manner. If the form is in
fact an XFA form, you have to use the prescribed interface

public void setXFA(PDXFA xfa)

In this case the method returns nothing although it does throw a

The important thing is that you have legitimate XFA to use as a param. If
the XFA instance data matches the schema derived PDF form, it should work.
In fact, this is a potentially free replacement for LiveCycle Forms.  Oh
yes I will get in deep sh!t for saying that but the reality is that
everyone is walking the stack upwards.  Innovate at the top end as the
lower end is commoditized.

I have to earn a living though so if you are truly stuck I can help for a
modest fee.  OTOH, I will freely point you at all online resources to help
you.  It comes down to time vs money.  Everything you need to solve this
issue is in front of you but it will take a lot of time to understand.
PDF is not a simple spec.

Duane

 
***********************************
Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i.  Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
b. http://technoracle.blogspot.com
t.  @duanechaos
"Don't fear the Graph!  Embrace Neo4J"






On 2013-01-17 9:49 PM, "kenton wu" <[email protected]> wrote:

>Hi All,
>
>Is there any one who knows how to fill data into pdf xfa forms by PdfBox?
>I only find two functions, AcroForm.getXFA() and AcroForm.setXFA(), but I
>don't know how to do it, I wish there is an example or description about
>it.
>
>Thank you!
>
>Best Regards,
>
>Kenton
>--------------------------------------------------------------------------
>------------------------------------------------------------------
> Kenton Wu - KISTERS Shanghai Software Development Co., Ltd. - No. 450
>Fushan Rd. 9A - 200122 Shanghai - China
>Phone: +86 21 68670119 -806 | E-Mail: [email protected] | WWW:
>--------------------------------------------------------------------------
>------------------------------------------------------------------
>This e-mail may contain confidential and/or privileged information. If
>you are not the intended recipient (or have received this e-mail in
>error) please notify the sender immediately and destroy this e-mail. Any
>unauthorised copying, disclosure or distribution of the material in this
>e-mail is strictly forbidden.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to