PdfParserException.php 816 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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;
  10. use Fpdi\FpdiException;
  11. /**
  12. * Exception for the pdf parser class
  13. */
  14. class PdfParserException extends FpdiException
  15. {
  16. /**
  17. * @var int
  18. */
  19. const NOT_IMPLEMENTED = 0x0001;
  20. /**
  21. * @var int
  22. */
  23. const IMPLEMENTED_IN_FPDI_PDF_PARSER = 0x0002;
  24. /**
  25. * @var int
  26. */
  27. const INVALID_DATA_TYPE = 0x0003;
  28. /**
  29. * @var int
  30. */
  31. const FILE_HEADER_NOT_FOUND = 0x0004;
  32. /**
  33. * @var int
  34. */
  35. const PDF_VERSION_NOT_FOUND = 0x0005;
  36. /**
  37. * @var int
  38. */
  39. const INVALID_DATA_SIZE = 0x0006;
  40. }