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:

enter image description here

how can make sure text , images aligned.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -