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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -