| 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, 18);
|
830 |
Font referenceCodeBarCodeFont = ttfFontFactory.getFont("barcode", BaseFont.CP1252, true, 20);
|
| 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(6.0f);
|
834 |
snapdealReferenceBarCodeCell.setPaddingTop(9.0f);
|
| - |
|
835 |
snapdealReferenceBarCodeCell.setColspan(2);
|
| 835 |
orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
|
836 |
//orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
|
| 836 |
orderTable.addCell(snapdealReferenceBarCodeCell);
|
837 |
orderTable.addCell(snapdealReferenceBarCodeCell);
|
| 837 |
//orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
|
838 |
//orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
|
| 838 |
}
|
839 |
}
|
| 839 |
|
840 |
|
| 840 |
orderTable.addCell(new Phrase("Order Date:", helvetica8));
|
841 |
orderTable.addCell(new Phrase("Order Date:", helvetica8));
|