Subversion Repositories SmartDukaan

Rev

Rev 8829 | Rev 8876 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8829 Rev 8874
Line 825... Line 825...
825
			orderTable.addCell(new Phrase(new Long(snapdealOrder.getSubOrderId()).toString(), helvetica8));
825
			orderTable.addCell(new Phrase(new Long(snapdealOrder.getSubOrderId()).toString(), helvetica8));
826
			
826
			
827
			String refernceCodeFontPath = InvoiceGenerationService.class.getResource("/saholic-wn.TTF").getPath();
827
			String refernceCodeFontPath = InvoiceGenerationService.class.getResource("/saholic-wn.TTF").getPath();
828
			FontFactoryImp ttfFontFactory = new FontFactoryImp();
828
			FontFactoryImp ttfFontFactory = new FontFactoryImp();
829
			ttfFontFactory.register(refernceCodeFontPath, "barcode");
829
			ttfFontFactory.register(refernceCodeFontPath, "barcode");
830
			Font referenceCodeBarCodeFont = ttfFontFactory.getFont("barcode", BaseFont.CP1252, true, 13);
830
			Font referenceCodeBarCodeFont = ttfFontFactory.getFont("barcode", BaseFont.CP1252, true, 18);
831
 
831
 
832
			PdfPCell snapdealReferenceBarCodeCell = new PdfPCell(new Paragraph( snapdealOrder.getReferenceCode(), referenceCodeBarCodeFont));
832
			PdfPCell snapdealReferenceBarCodeCell = new PdfPCell(new Paragraph("*" +  snapdealOrder.getReferenceCode() + "*", referenceCodeBarCodeFont));
833
			snapdealReferenceBarCodeCell.setBorder(Rectangle.NO_BORDER);
833
			snapdealReferenceBarCodeCell.setBorder(Rectangle.NO_BORDER);
834
			snapdealReferenceBarCodeCell.setPaddingTop(7.0f);
834
			snapdealReferenceBarCodeCell.setPaddingTop(6.0f);
835
			orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
835
			orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
836
			orderTable.addCell(snapdealReferenceBarCodeCell);
836
			orderTable.addCell(snapdealReferenceBarCodeCell);
837
			//orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
837
			//orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
838
		}
838
		}
839
 
839