How to insert the PNG images in PDF in Xamarin IOS Platform?
Currently Essential PDF for Xamarin support only jpeg images. We can also insert PNG images in PDF by converting the PNG to JPEG by using the UIImage class available in Xamarin IOS. Please note that the transparent graphics won’t be preserved in this workaround.
The below code snippet used to convert the PNG image into jpeg images.
Then we can use the PdfImage class to load the jpeg image and draw it to the pdf, to add an image into the PdfLightTable cell we need to initialize the begin cell event.
Please refer the below code snippet to draw the image into PdfLightTable cell.
This page will automatically be redirected to the sign-in page in 10 seconds.