I am taking a photo with the camera and saving the photo value into a bitmap. I would like to use that photo in itext to generate an pdf.
This is the code I have so far.
Bitmap bitmap;    
public void Picture()
{
    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    startActivityForResult(intent,0);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    bitmap=(Bitmap)data.getExtras().get("data");
    PDF();
}
public void PDF()
    {
        try {
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            Image img = Image.getInstance(bitmap);
            Document document = new Document();
            PdfWriter.getInstance(document, out);
            document.open();
            document.add(new Paragraph("Example"));
            document.close();
}