On 22/03/2012 17:59, Zhang.Xun-An wrote:
> Hi Paulo,
>
> Thank you for response so fast.
>
> I don't know the inside of a general PDF file.

We're very sorry, but the concept of "a general PDF file" isn't 
mentioned in SO-32000-1 (which is the ISO standard defining PDF), so we 
can't answer your question without asking some counter-questions to 
determine what you mean. We hope you understand.

>   What I have are some general editable pdf files.

Please define "editable". It would help if you read the intro of chapter 
6 of the book you're referring to: 
http://www.manning.com/lowagie2/samplechapter6.pdf

>   They are not created in Java with 'PdfPCell' or 'pdfField'.

That doesn't matter. If you go to section 6.3.5 of chapter 6, you'll 
find out that iText can also fill out forms that are created using Open 
Office. On page 181, you'll find the title "INSPECTING THE FORM AND ITS 
FIELDS". Of course, you already found the source code to inspect your 
form on the itextpdf.com site.

>   Is it possible we fill in values with 'AcroFields' in iText jar.

There are three possibilities:

1. You have a PDF that looks as if it's a form, but in reality, it's 
just a flat PDF.

In that case, you won't find any software that can help you to fill out 
the form easily. You could use iText to add text at absolute positions, 
but... you'd need to know the coordinates of the fields first. When 
people say they have a "general PDF", they often talk about PDFs like 
this. "Traditional PDFs" are PDF without any interactivity. We usually 
don't refer to them as forms. When we talk about PDF forms, we usually 
refer to an interactive form.

2. You have an interactive form that is based on AcroForm technology.

The PDF created with Open Office as described in section 6.3.5 is such a 
form. By adapting the code sample from the book ( http://1t3xt.be/?107 ) 
you'll be able to inspect the form. However, this code won't return any 
field if possibility 3 applies.

3. You have an interactive form that is based on XFA technology

XFA stands for the XML Forms Architecture. In this case, your PDF isn't 
really built using PDF syntax. The PDF only serves as container and 
background.
The actual content is stored inside the PDF container as XML.
Please watch this video to find out more: 
http://www.youtube.com/watch?v=qxtAy2Czsh0
You can also use this demo for testing: 
http://demo.itextsupport.com/xfademo/

If you don't know "the inside of your PDFs" and you do not wish to share 
any of your PDFs, there is very little we can do. As a matter of fact, 
there is very little ANYBODY can do, except maybe some shameless vendor 
who wants to sell you something before understanding your needs... That 
probably wouldn't help you either, would it?

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to