how to save image to pdf in android
//make function inside the activity public void convertPDF( byte [] path) { //String FILE = "mnt/sdcard/FirstPdf.pdf"; Document document= new Document(); File direct = new File(Environment. getExternalStorageDirectory () + "/collage app pdf" ); if (!direct.exists()) { File wallpaperDirectory = new File( "/sdcard/collage app pdf/" ); wallpaperDirectory.mkdirs(); } File f = null ; f = new File(direct, UUID. randomUUID ().toString() + ".pdf" ); if (f.exists()) { f.delete(); } try { PdfWriter. getInstance (document, new FileOutputStream(f)); document.open(); try { Image image=Image. getInstance (path); document.add( new Paragraph( "Collage Pic" )); document.add(image); document.close(); Toast. makeText (getContext(), "pdf save successfully" , Toast. LENGTH_SHORT ).show();...