CrossReferenceException.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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\PdfParserException;
  11. /**
  12. * Exception used by the CrossReference and Reader classes.
  13. */
  14. class CrossReferenceException extends PdfParserException
  15. {
  16. /**
  17. * @var int
  18. */
  19. const INVALID_DATA = 0x0101;
  20. /**
  21. * @var int
  22. */
  23. const XREF_MISSING = 0x0102;
  24. /**
  25. * @var int
  26. */
  27. const ENTRIES_TOO_LARGE = 0x0103;
  28. /**
  29. * @var int
  30. */
  31. const ENTRIES_TOO_SHORT = 0x0104;
  32. /**
  33. * @var int
  34. */
  35. const NO_ENTRIES = 0x0105;
  36. /**
  37. * @var int
  38. */
  39. const NO_TRAILER_FOUND = 0x0106;
  40. /**
  41. * @var int
  42. */
  43. const NO_STARTXREF_FOUND = 0x0107;
  44. /**
  45. * @var int
  46. */
  47. const NO_XREF_FOUND = 0x0108;
  48. /**
  49. * @var int
  50. */
  51. const UNEXPECTED_END = 0x0109;
  52. /**
  53. * @var int
  54. */
  55. const OBJECT_NOT_FOUND = 0x010A;
  56. /**
  57. * @var int
  58. */
  59. const COMPRESSED_XREF = 0x010B;
  60. /**
  61. * @var int
  62. */
  63. const ENCRYPTED = 0x010C;
  64. }