35 lines
739 B
PHP
35 lines
739 B
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of FPDI
|
|
*
|
|
* @package Fpdi
|
|
* @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
|
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
|
*/
|
|
|
|
namespace Fpdi\PdfParser\CrossReference;
|
|
|
|
use Fpdi\PdfParser\Type\PdfDictionary;
|
|
|
|
/**
|
|
* ReaderInterface for cross-reference readers.
|
|
*/
|
|
interface ReaderInterface
|
|
{
|
|
/**
|
|
* Get an offset by an object number.
|
|
*
|
|
* @param int $objectNumber
|
|
* @return int|bool False if the offset was not found.
|
|
*/
|
|
public function getOffsetFor($objectNumber);
|
|
|
|
/**
|
|
* Get the trailer related to this cross reference.
|
|
*
|
|
* @return PdfDictionary
|
|
*/
|
|
public function getTrailer();
|
|
}
|