Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function createProcessArguments(Input $input)
 {
     $code = $input->getPostScriptCode();
     if (null === $code) {
         $code = '';
     }
     if (false === strstr($code, '.setpdfwrite')) {
         $input->setPostScriptCode(ltrim($code . ' .setpdfwrite', ' '));
     }
     return parent::createProcessArguments($input);
 }
Example #2
0
 /**
  * Create PDF write device object
  *
  * @param ProcessBuilder   $builder
  * @param ProcessArguments $arguments
  */
 public function __construct(ProcessBuilder $builder, ProcessArguments $arguments)
 {
     parent::__construct($builder, $arguments->setArgument('-sDEVICE=pdfwrite'));
     $this->setPdfSettings(PdfSettings::__DEFAULT);
 }
Example #3
0
 /**
  * Create no display device object.
  *
  * @param Ghostscript $ghostscript
  * @param Arguments   $arguments
  */
 public function __construct(Ghostscript $ghostscript, Arguments $arguments)
 {
     parent::__construct($ghostscript, $arguments->setArgument('-dNODISPLAY'));
 }