PdfRequestInterface.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. /*
  3. * This file is part of the php-phantomjs.
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. namespace JonnyW\PhantomJs\Http;
  9. /**
  10. * PHP PhantomJs
  11. *
  12. * @author Jon Wenmoth <contact@jonnyw.me>
  13. */
  14. interface PdfRequestInterface
  15. {
  16. /**
  17. * Set paper width.
  18. *
  19. * @access public
  20. * @param string $width
  21. * @return void
  22. */
  23. public function setPaperWidth($width);
  24. /**
  25. * Get paper width.
  26. *
  27. * @access public
  28. * @return string
  29. */
  30. public function getPaperWidth();
  31. /**
  32. * Set paper height.
  33. *
  34. * @access public
  35. * @param string $height
  36. * @return void
  37. */
  38. public function setPaperHeight($height);
  39. /**
  40. * Get paper height.
  41. *
  42. * @access public
  43. * @return string
  44. */
  45. public function getPaperHeight();
  46. /**
  47. * Set paper size.
  48. *
  49. * @access public
  50. * @param string $width
  51. * @param string $height
  52. * @return void
  53. */
  54. public function setPaperSize($width, $height);
  55. /**
  56. * Set format.
  57. *
  58. * @access public
  59. * @param string $format
  60. * @return void
  61. */
  62. public function setFormat($format);
  63. /**
  64. * Get format.
  65. *
  66. * @access public
  67. * @return string
  68. */
  69. public function getFormat();
  70. /**
  71. * Set orientation.
  72. *
  73. * @access public
  74. * @param string $orientation
  75. * @return void
  76. */
  77. public function setOrientation($orientation);
  78. /**
  79. * Get orientation.
  80. *
  81. * @access public
  82. * @return string
  83. */
  84. public function getOrientation();
  85. /**
  86. * Set margin.
  87. *
  88. * @access public
  89. * @param string $margin
  90. * @return void
  91. */
  92. public function setMargin($margin);
  93. /**
  94. * Get margin.
  95. *
  96. * @access public
  97. * @return string
  98. */
  99. public function getMargin();
  100. }