java - How can I draw a rectangle into pdf file and fill it with text? -
i've started work on simple android project recently, have collect data database , put them pdf file.
i'd put these data rectangles, this:
i've read rectangles on this post, , think it's gonna work in android too. thing can't how fill data rectangle.
could give me suggestion, please?
thank in advance...
i have similar code used table , set value.it may provide hint:
private static font blackfont = new font(font.fontfamily.times_roman, 10, font.bold); private void createseg_table(document document)throws documentexception,ioexception{ pdfptable table = new pdfptable(1); table.setwidthpercentage(100); try{ pdfpcell c1 = new pdfpcell(new paragraph("text want show",blackfont)); c1.setverticalalignment(element.align_left); c1.setborder(rectangle.box); table.addcell(c1); document.add(table); } catch(exception ex){ system.out.println(ex); } }
Comments
Post a Comment