COSName name = (COSName) i.next();
COSBase value = obj.getItem(name);
if (value != null)
{
// this is purely defensive, if entry is set to null instead of removed
name.accept(this);
getStandardOutput().write(SPACE);
//a quick fix until parsing is fixed
if( value instanceof org.pdfbox.cos.COSObject )
{
value = ((org.pdfbox.cos.COSObject)value).getObject();