pdf generation - HTML content in iText -
i using pdf template created using open office draw write contents pdf.
it designed using multiple textboxes based on format require.
with of acrofields set values each text boxes.
i using single text area print label , content. need label appear in bold , contents in non-bold.
pdfstamper stamper1;
acrofields form = stamper1.getacrofields();
string text = "product id: "+productname+"\n"+"\n"+"description: "+productdesc.trim;
form.setfield("section1-line1", text);
this section1-line1 text area name, value of text set text area.
my requirement make labels in bold(i.e product id: , description:)
since displayed in single text area contents printed normal font.
what thought of doing adding html content label make bold , render html in template.
string text = " product id: "+productname+"\n"+"\n"+"description: "+productdesc.trim+"";
form.setfield("section1-line1", text);
my problem html content not rendered in template.
please me out in bringing labels in bold.
Comments
Post a Comment