*/
public static PDImageXObject createFromImage(PDDocument document, BufferedImage image)
throws IOException
{
int bpc;
PDDeviceColorSpace deviceColorSpace;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
int height = image.getHeight();
int width = image.getWidth();