@@ 259-273 (lines=15) @@ | ||
256 | * |
|
257 | * @return $this |
|
258 | */ |
|
259 | public function setAutoRotatePages($autoRotatePages) |
|
260 | { |
|
261 | if (!in_array($autoRotatePages, array( |
|
262 | DistillerParametersInterface::AUTO_ROTATE_PAGES_NONE, |
|
263 | DistillerParametersInterface::AUTO_ROTATE_PAGES_ALL, |
|
264 | DistillerParametersInterface::AUTO_ROTATE_PAGES_PAGE_BY_PAGE |
|
265 | )) |
|
266 | ) { |
|
267 | throw new \InvalidArgumentException('Invalid auto rotate pages argument'); |
|
268 | } |
|
269 | ||
270 | $this->setArgument('-dAutoRotatePages=/' . $autoRotatePages); |
|
271 | ||
272 | return $this; |
|
273 | } |
|
274 | ||
275 | /** |
|
276 | * Get binding |
|
@@ 300-313 (lines=14) @@ | ||
297 | * |
|
298 | * @return $this |
|
299 | */ |
|
300 | public function setBinding($binding) |
|
301 | { |
|
302 | if (!in_array($binding, array( |
|
303 | DistillerParametersInterface::BINDING_LEFT, |
|
304 | DistillerParametersInterface::BINDING_RIGHT |
|
305 | )) |
|
306 | ) { |
|
307 | throw new \InvalidArgumentException('Invalid binding argument'); |
|
308 | } |
|
309 | ||
310 | $this->setArgument('-dBinding=/' . $binding); |
|
311 | ||
312 | return $this; |
|
313 | } |
|
314 | ||
315 | /** |
|
316 | * Get cal CMYK profile |
|
@@ 426-440 (lines=15) @@ | ||
423 | * |
|
424 | * @return $this |
|
425 | */ |
|
426 | public function setCannotEmbedFontPolicy($cannotEmbedFontPolicy) |
|
427 | { |
|
428 | if (!in_array($cannotEmbedFontPolicy, array( |
|
429 | DistillerParametersInterface::CANNOT_EMBED_FONT_POLICY_OK, |
|
430 | DistillerParametersInterface::CANNOT_EMBED_FONT_POLICY_WARNING, |
|
431 | DistillerParametersInterface::CANNOT_EMBED_FONT_POLICY_ERROR |
|
432 | )) |
|
433 | ) { |
|
434 | throw new \InvalidArgumentException('Invalid cannot embed font policy argument'); |
|
435 | } |
|
436 | ||
437 | $this->setArgument('-dCannotEmbedFontPolicy=/' . $cannotEmbedFontPolicy); |
|
438 | ||
439 | return $this; |
|
440 | } |
|
441 | ||
442 | /** |
|
443 | * Get compatibility level |