QPDFXRefEntry::getObjStreamIndex() const
{
    if (this->type != 2)
    {
	throw std::logic_error(
	    "getObjStreamIndex called for xref entry of type != 2");
    }
    return this->field2;
}
QPDFXRefEntry::getObjStreamIndex() const
{
    if (this->type != 2)
    {
	throw std::logic_error(
	    "getObjStreamIndex called for xref entry of type != 2");
    }
    return this->field2;
}