List of usage examples for com.lowagie.text.pdf PdfPCell setBorderWidthBottom
public void setBorderWidthBottom(float borderWidthBottom)
From source file:tk.diginspect.main.SoOFSignatories.java
private void insertCell1(PdfPTable table, String text, float borderWidthTop, float borderWidthBottom, float fixedHeight) { PdfPCell cell = new PdfPCell(new Paragraph(Font.TIMES_ROMAN, text)); cell.setBackgroundColor(WebColors.getRGBColor("#FFFFFF")); cell.setPadding(5);//from w ww .ja v a2s.c o m cell.setBorderWidthTop(borderWidthTop); cell.setBorderWidthBottom(borderWidthBottom); cell.setFixedHeight(fixedHeight); table.addCell(cell); }
From source file:tk.diginspect.main.SoOFSignatories.java
private void nested(PdfPTable table, float column1, float column2, int directives, boolean checkmark, int align) { float[] nestedcolumnWidths = { column1, column2 }; PdfPTable nested = new PdfPTable(nestedcolumnWidths); if (checkmark == true) { Checked(nested, align, R.drawable.checked); } else if (checkmark == false) { Checked(nested, align, R.drawable.unchecked); }// w w w.j a v a 2 s . c o m String Directives = getResources().getString(directives); PdfPCell cell = new PdfPCell(new Paragraph(Font.TIMES_ROMAN, Directives)); cell.setPadding(5); cell.setBorderWidth(0); nested.addCell(cell); PdfPCell nesthousing = new PdfPCell(nested); nesthousing.setBorderWidthTop(0); nesthousing.setBorderWidthBottom(0); table.addCell(nesthousing); }
From source file:tk.diginspect.main.SoOFSignatories.java
private void sig(PdfPTable table, String image) { try {// w w w.j a v a2 s.co m FileInputStream fis = openFileInput(image); ByteArrayOutputStream stream = new ByteArrayOutputStream(); Bitmap bitmap = BitmapFactory.decodeStream(fis); bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); Image Img = null; Img = Image.getInstance(stream.toByteArray()); Img.scalePercent(10f); PdfPCell cell = new PdfPCell(Img, false); cell.setPadding(10); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setBorderWidthBottom(0); table.addCell(cell); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (BadElementException e) { // TODO Auto-generated catch block e.printStackTrace(); } }