loaded = loaded | BITMAP;
}
}
+ if(((type & ORIGINAL_DATA) != 0) && ((loaded & ORIGINAL_DATA) == 0)) {
+ success = success && loadOriginalData(ua);
+ if(success) {
+ loaded = loaded | ORIGINAL_DATA;
+ }
+ }
return success;
}
return false;
}
+ protected boolean loadOriginalData(FOUserAgent ua) {
+ return false;
+ }
+
/**
* Return the image URL.
* @return the image URL (as String)
bbox[2] = (int) epsData.bbox[2];
bbox[3] = (int) epsData.bbox[3];
+ loaded = loaded | ORIGINAL_DATA;
}
}
super(href, imgReader);
}
- protected boolean loadBitmap(FOUserAgent ua) {
+ protected boolean loadOriginalData(FOUserAgent ua) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ByteArrayOutputStream iccStream = new ByteArrayOutputStream();
InputStream inStream;
super(href, imgInfo);
if(imgInfo.data instanceof Document) {
doc = (Document)imgInfo.data;
+ loaded = loaded | ORIGINAL_DATA;
}
ns = imgInfo.str;
}
FopPDFImage pdfimage = new FopPDFImage(fopimage, url);
int xobj = pdfDoc.addImage(null, pdfimage).getXNumber();
fact.releaseImage(url, userAgent);
- } else if ("image/jpg".equals(mime)) {
+ } else if ("image/jpeg".equals(mime)) {
if (!fopimage.load(FopImage.ORIGINAL_DATA, userAgent)) {
return;
}