ReaderInterface.php 739 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * This file is part of FPDI
  4. *
  5. * @package Fpdi
  6. * @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
  7. * @license http://opensource.org/licenses/mit-license The MIT License
  8. */
  9. namespace Fpdi\PdfParser\CrossReference;
  10. use Fpdi\PdfParser\Type\PdfDictionary;
  11. /**
  12. * ReaderInterface for cross-reference readers.
  13. */
  14. interface ReaderInterface
  15. {
  16. /**
  17. * Get an offset by an object number.
  18. *
  19. * @param int $objectNumber
  20. * @return int|bool False if the offset was not found.
  21. */
  22. public function getOffsetFor($objectNumber);
  23. /**
  24. * Get the trailer related to this cross reference.
  25. *
  26. * @return PdfDictionary
  27. */
  28. public function getTrailer();
  29. }