java - Creating a 3D shadow effect on images with itextpdf -
i want create 3d shadow effect on images place in pdf. using itextpdf. question similar : adding shadow effect on itext elements but images , not texts. images placed in table cells. long table not completed, no way actual size of image nor coordinates in page, makes tricky. brilliant id ? , regards, sylvain 4 hours later, found way using pdfcellevent , drawing need inside cell's padding. static class shadowrectangle implements pdfpcellevent { public void celllayout(pdfpcell cell, rectangle rect, pdfcontentbyte[] canvas) { pdfcontentbyte lcb = canvas[pdfptable.linecanvas]; // paddings border int paddinghorizontal = 8; int paddingvertical = 8; // width of shadow int shadowwidth = 7; // calculate border location , size float left = rect.getleft() + paddinghorizontal; float bottom = rect.getbottom() + paddingvertical; float width = rect.get...