| | |
| | | map.put(EncodeHintType.CHARACTER_SET,"utf-8"); |
| | | BitMatrix encode = null; |
| | | try { |
| | | encode = new MultiFormatWriter().encode(tjNumber, BarcodeFormat.CODE_128, 300, 100, map); |
| | | encode = new MultiFormatWriter().encode(tjNumber, BarcodeFormat.CODE_128, 500, 100, map); |
| | | } catch (WriterException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | * @throws DocumentException |
| | | * @throws IOException |
| | | */ |
| | | public static void makeTjInfo(Document document,List<Map<String ,String>> data) throws DocumentException, IOException { |
| | | public static void makeTjInfo(Document document,List<Map<String ,Object>> data) throws DocumentException, IOException { |
| | | PdfPTable table1 = new PdfPTable(7); |
| | | table1.setWidthPercentage(100); |
| | | float[] columnWidths = {1.5f, 3, 3, 6, 1.5f, 3, 3}; |