image - Java Icon label -
my question how save icon image variable in java?
when values displayed sql database in jtextfields
, can write them on pdf file in java. however, retrieve image database appears on jlabel
.
how image appear on pdf file in java?
note details in jtextfields
shown in pdf file when created.
i want image appear in pdf file.
string val8 = id.gettext(); icon val11 = lblimg.geticon(); try{ document doc = new document(); pdfwriter.getinstance(doc, new fileoutputstream("report.pdf")); doc.open(); doc.add(new paragraph("employee information", fontfactory.getfont(fontfactory.times_bold,18, font.bold, basecolor.red))); doc.add(new paragraph( "______________________________________________________________________________")); doc.add(new paragraph("employee id " + val));
Comments
Post a Comment