if(debugPairs)
System.out.println(id+ ' '+obj+ ' ' +value+ ' ' +Resources.isDataExternal());
if(Resources.isDataExternal()){ //check and flag if missing
@SuppressWarnings("ObjectAllocationInLoop") ObjectDecoder objectDecoder=new ObjectDecoder(currentPdfFile.getObjectReader());
if(obj==null && value==null){
Resources.setFullyResolved(false);
return;
}else if(obj==null){
PdfObject childObj= ObjectFactory.createObject(type, value, type, -1);
childObj.setStatus(PdfObject.UNDECODED_DIRECT);
childObj.setUnresolvedData(StringUtils.toBytes(value), type);
if(!objectDecoder.resolveFully(childObj)){
Resources.setFullyResolved(false);
return;
}
//cache if setup
if(type==PdfDictionary.Font){
directFonts.put(id,childObj);
}
}else if(!objectDecoder.resolveFully(obj)){
Resources.setFullyResolved(false);
return;
}
}