c# - how to align PdfPCell or paragraph using iTextSharp? -
i creating 1 table, containing cells paragraphs. in paragraphs, adding 2 chunk objects add image , 3 phrase objects add text , black space following:
var headertable = new pdfptable(1); headertable.rundirection = getdirection(lang); headertable.defaultcell.border = rectangle.no_border; headertable.widthpercentage = 100f;  var celllogo = new pdfpcell(); celllogo.border = rectangle.no_border;  paragraph pheader = new paragraph(); pheader.add(new chunk(logo,0,0)); //image pheader.add(new phrase("           ")); pheader.add(new chunk(_localizationservice.getresource("admin.commmon.hnlrequisition", lang.id), labrecfont)); pheader.add(new phrase("           "));  pheader.add(new chunk(imghnl, 0, 0));//image  celllogo.addelement(pheader); headertable.addcell(celllogo);   now want each , every element in paragraph aligned getting below output:
how can make sure text , images aligned.
 
 

Comments
Post a Comment