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