1 | <?php |
||
21 | class PdfWrite extends AbstractDevice |
||
22 | { |
||
23 | /** |
||
24 | * Use distiller parameters. |
||
25 | */ |
||
26 | use DistillerParametersTrait; |
||
27 | |||
28 | /** |
||
29 | * Use color image compression distiller parameters. |
||
30 | */ |
||
31 | use DistillerParameters\ColorImageCompressionTrait; |
||
32 | |||
33 | /** |
||
34 | * Use grayscale image compression distiller parameters. |
||
35 | */ |
||
36 | use DistillerParameters\GrayImageCompressionTrait; |
||
37 | |||
38 | /** |
||
39 | * Use monochrome image compression distiller parameters. |
||
40 | */ |
||
41 | use DistillerParameters\MonoImageCompressionTrait; |
||
42 | |||
43 | /** |
||
44 | * Use page compression distiller parameters. |
||
45 | */ |
||
46 | use DistillerParameters\PageCompressionTrait; |
||
47 | |||
48 | /** |
||
49 | * Use font distiller parameters. |
||
50 | */ |
||
51 | use DistillerParameters\FontTrait; |
||
52 | |||
53 | /** |
||
54 | * Use color conversion distiller parameters. |
||
55 | */ |
||
56 | use DistillerParameters\ColorConversionTrait; |
||
57 | |||
58 | /** |
||
59 | * Use advanced distiller parameters. |
||
60 | */ |
||
61 | use DistillerParameters\AdvancedTrait; |
||
62 | |||
63 | /** |
||
64 | * Create PDF write device object. |
||
65 | * |
||
66 | * @param Ghostscript $ghostscript |
||
67 | * @param Arguments $arguments |
||
68 | */ |
||
69 | 26 | public function __construct(Ghostscript $ghostscript, Arguments $arguments) |
|
75 | |||
76 | /** |
||
77 | * Get output file. |
||
78 | * |
||
79 | * @return null|string |
||
80 | */ |
||
81 | 2 | public function getOutputFile() |
|
85 | |||
86 | /** |
||
87 | * Set output file. |
||
88 | * |
||
89 | * @param string $outputFile |
||
90 | * |
||
91 | * @return $this |
||
92 | */ |
||
93 | 2 | public function setOutputFile($outputFile) |
|
99 | |||
100 | /** |
||
101 | * Get PDF settings. |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | 10 | public function getPdfSettings() |
|
109 | |||
110 | /** |
||
111 | * Set PDF settings. |
||
112 | * |
||
113 | * @param string $pdfSettings |
||
114 | * |
||
115 | * @throws \InvalidArgumentException |
||
116 | * |
||
117 | * @return $this |
||
118 | */ |
||
119 | 26 | public function setPdfSettings($pdfSettings) |
|
130 | |||
131 | /** |
||
132 | * Get process color model. |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | 6 | public function getProcessColorModel() |
|
140 | |||
141 | /** |
||
142 | * Set process color model. |
||
143 | * |
||
144 | * @param string $processColorModel |
||
145 | * |
||
146 | * @throws \InvalidArgumentException |
||
147 | * |
||
148 | * @return $this |
||
149 | */ |
||
150 | 8 | public function setProcessColorModel($processColorModel) |
|
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | 2 | protected function createProcessArguments(Input $input) |
|
185 | } |
||
186 |