Hi

I have been trying for the past week or so to left_align an image from a PdfPCell and nothing is working... Not sure about the sequence. I'm trying to left align the image itself.. then left align the cell itself... but the image always end up Centered in the cell. Can anyone guide me?

Image hronlineLogo = Image.getInstance(path+messageResources.getMessage(hrOnlineLocale.getLocaleLocale(),"image.logo.printer"));
hronlineLogo.setWidthPercentage(65);
hronlineLogo.setAlignment(Element.ALIGN_LEFT);

PdfPCell cellHROnline = new PdfPCell();
cellHROnline.addElement(hronlineLogo);
cellHROnline.setHorizontalAlignment(Element.ALIGN_LEFT);
cellHROnline.setBorder(0);

table.addCell(cellHROnline);

Thanks
Remi

Reply via email to