Raghavendra Samant wrote:
> If you don’t mind, may I suggest some things –
Thank you very much for the very useful suggestion.
The changes have been uploaded to the SVN repository
and will be online soon:
Date: 2009-06-04 16:43:27 +0000 (Thu, 04 Jun 2009)
Log Message:
-----------
Changes by Raghavendra Samant
The code is faster, the PDFs more compact and they now demonstrate the
use of barcodes in XFA forms.
Modified Paths:
--------------
examples/resources/questions/forms/datasets.xml
examples/resources/questions/forms/dynamic.pdf
examples/src/questions/forms/FillDynamicXfa.java
Modified: examples/resources/questions/forms/datasets.xml
===================================================================
--- examples/resources/questions/forms/datasets.xml 2009-06-03 15:19:04
UTC (rev 3949)
+++ examples/resources/questions/forms/datasets.xml 2009-06-04 16:43:27
UTC (rev 3950)
@@ -8,6 +8,7 @@
<TextField1>Bruno</TextField1>
<TextField1>Lowagie</TextField1>
<DateTimeField1>10-06-1970</DateTimeField1>
+ <Code128BarCode1>778899445566</Code128BarCode1>
<sfAddress>
<TextField1>1T3XT BVBA</TextField1>
<TextField1>Adolf Baeyensstraat 121</TextField1>
Modified: examples/resources/questions/forms/dynamic.pdf
===================================================================
(Binary files differ)
Modified: examples/src/questions/forms/FillDynamicXfa.java
===================================================================
--- examples/src/questions/forms/FillDynamicXfa.java 2009-06-03 15:19:04
UTC (rev 3949)
+++ examples/src/questions/forms/FillDynamicXfa.java 2009-06-04 16:43:27
UTC (rev 3950)
@@ -35,8 +35,9 @@
FileInputStream is = new FileInputStream(file);
int offset = 0;
int numRead = 0;
- while (offset < data.length
- && (numRead=is.read(data, offset, data.length-offset))
>= 0) {
+ int datalength = data.length;
+ while (offset < datalength
+ && (numRead=is.read(data, offset, datalength - offset))
>= 0) {
offset += numRead;
}
PdfDictionary root = reader.getCatalog();
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/