I need to send an image as in form of PDF file in my Android application but I dont have idea how to convert bitmap to PDF.
I am able to write pdf with text only.
use this
Document document=new Document(); PdfWriter.getInstance(document,new FileOutputStream("YourPDFHere.pdf")); document.open(); Image image = Image.getInstance ("yourImageHere.jpg"); document.add(new Paragraph("Your Heading for the Image Goes Here")); document.add(image); document.close();