I'm using IKVM and PDFBox to create accessible PDF using C#. To add image to the document, I need to convert System.Drawing.Bitmap to java.awt.image.BufferedImage. I'm trying it with below code segment.
Code:
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(imgLoc);
java.awt.image.BufferedImage bufImg = .... //TO DO
PDJpeg img = new PDJpeg(document,bufImg);
contentStream.drawImage(img,50,50);
Can anyone please help me to add image to PDFdoc using PDFBOX in C#?
Thank You