You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Pdf
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * PDF provides a powerfull facilities for specifying the colors of graphics objects.
  23. * This class encapsulates color behaviour.
  24. *
  25. * Some colors interact with PDF document (create additional objects in a PDF),
  26. * others don't do it. That is defined in a subclasses.
  27. *
  28. * @package Zend_Pdf
  29. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  30. * @license http://framework.zend.com/license/new-bsd New BSD License
  31. */
  32. abstract class Zend_Pdf_Color
  33. {
  34. /**
  35. * Instructions, which can be directly inserted into content stream
  36. * to switch color.
  37. * Color set instructions differ for stroking and nonstroking operations.
  38. *
  39. * @param boolean $stroking
  40. * @return string
  41. */
  42. abstract public function instructions($stroking);
  43. /**
  44. * Get color components (color space dependent)
  45. *
  46. * @return array
  47. */
  48. abstract public function getComponents();
  49. }