« Return to Thread: Pdf template processor and image

Re: Re: Re: Pdf template processor and image

by VG-3 :: Rate this Message:

Reply to Author | View in Thread


I added (or more accurately, "activated") Code128 support for the barcode -tag
in PDF template processor. Use 'type' attribute thusly :

   <barcode type="CODE128" ....

Here's the unified diff for PDFTemplateProcessor.java :

--- PDFTemplateProcessor.java~ 2008-04-02 10:26:34.000000000 +0300
+++ PDFTemplateProcessor.java 2008-04-25 14:25:34.000000000 +0300
@@ -494,6 +494,8 @@
     private Barcode createBarCode(String type) {
                if (type.equals("CODE39")) {
                        return new Barcode39();
+ } else if (type.equals("CODE128")) {
+ return new Barcode128();
                } else if (type.equals("EAN")) {
                        return new BarcodeEAN();
                }




VG


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

 « Return to Thread: Pdf template processor and image