I feel that I am so close to the solutions, but I need some help. Basically, I am trying to print labels from Java. If some tries to ship 10 pieces, I have to print 10 labels with the same information except � for each label I need to pring �piece x of y�. So I created a template pdf file that represents a single lable. The steps are as fillowing -
Sounds good...
2. Fill form fields in the template from database. For example fill in Shipper and Receiver address. All the labels I want to print will have the same shipper and receiver information. So, I need to add the same template several times in a single pdf document as the next step.
Correct...
Now, are you flattening the form at this step or not?? If so, you shouldn't - wait one more step...
The problems is for each label/template I need to dynamically say �Piece x of y�, �Piece 2 of 5� and so on. The form/template (step 1) has everything except Piece x field. After adding the templates (step 3), how do I access the fields that represent piece x in each label and update it?
Do the following:
* Load the unflattened form from step #2 * Fill in the missing "piece x of y" field * Flatten the PDF file (in memory!) * Place the newly flattened PDF onto the output page. - Repeat above steps once per piece...
Leonard -- --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax)
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
