At 03:39 PM 6/13/2006, Nick Darnell wrote:
> > Copying the fields from the template doc to the doc with the
> > content is VERY simple and logical - there shouldn't be any problems.
>
>I'm sure it is...but when new ways are added and old ways are not being
>depricated, case in point PRAcroForm.FieldInformation and AcroField.Item,
For copying of data at the level that you need - you should
be skipping the high level objects and going directly to the PDF data
structures. That is really your problem - you are too high ;).
>I've got a ref to the (/AcroForm) dictionary. Does that contain all the
>widgets for the fields as well?
It contains references to them - yes. BUT you ALSO need to
setup the /Annots array on each page as well...
>In the writer, can I just putAll the
>items from that (/AcroForm) dictionary to the new pdf document?
Yes!
>How does one associate an (/Annot) dictionary with a particular page?
Add it to the /Page dictionary of that Page.
>What are indirect references used for?
They are a way to refer to another object w/o copying the
actual data multiple times in the PDF.
LDR
---------------------------------------------------------------------------
Leonard Rosenthol <mailto:[EMAIL PROTECTED]>
Chief Technical Officer <http://www.pdfsages.com>
PDF Sages, Inc. 215-938-7080 (voice)
215-938-0880 (fax)
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions