Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/02/2016, 18:13
lvinuezav
 
Fecha de Ingreso: diciembre-2007
Mensajes: 218
Antigüedad: 16 años, 4 meses
Puntos: 1
Respuesta: Crear pdf con iTextpdf y adjuntar imagen

Por si a alguien lo llegara a necesitar, detallo el codigo q me funciono:

Bitmap bitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.logo);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);
Image imagen = Image.getInstance(stream.toByteArray());
documento.add(imagen);