Is there a way to add this image to back and not over lay text that is already on the page? or do I need to use the Rectangle
that is cutting into the text?
float mapimageX = 111.318f;
float mapimageY = 130.791f;
float mapimageWidth = 755.454f;
float mapimageHeight = 432.094f;
ImageData imageData = ImageDataFactory.Create(@"PathTOFile");
imagerectangle = new iText.Kernel.Geom.Rectangle(mapimageX, mapimageY, mapimageWidth, mapimageHeight);
canvasPage.AddImageFittedIntoRectangle(imageData, imagerectangle,true);
Example
canvasPage
for adding content in front. If you want to add stuff in the back, you have to create thePdfCanvas
instance differently. Beware, though: Some PDF creators first cover the whole page area with a white rectangle before drawing stuff on it. If you try to manipulate such a PDF, anything you create in the back will be covered by said white rectangle and, therefore, invisible. For such cases adding in front using special blend modes may be better. - mklPdfCanvas
differently? I just do something like thisPdfCanvas canvasPage = new PdfCanvas(pdfPage);
- Jefferson