1 | <?php |
||
20 | class PdfWrite extends AbstractDevice |
||
21 | { |
||
22 | /** |
||
23 | * Use distiller options |
||
24 | */ |
||
25 | use DistillerParametersTrait; |
||
26 | |||
27 | /** |
||
28 | * Use color image compression distiller options |
||
29 | */ |
||
30 | use DistillerParameters\ColorImageCompressionTrait; |
||
31 | |||
32 | /** |
||
33 | * Use grayscale image compression distiller options |
||
34 | */ |
||
35 | use DistillerParameters\GrayImageCompressionTrait; |
||
36 | |||
37 | /** |
||
38 | * Use monochrome image compression distiller options |
||
39 | */ |
||
40 | use DistillerParameters\MonoImageCompressionTrait; |
||
41 | |||
42 | /** |
||
43 | * Use page compression distiller options |
||
44 | */ |
||
45 | use DistillerParameters\PageCompressionTrait; |
||
46 | |||
47 | /** |
||
48 | * Use font distiller options |
||
49 | */ |
||
50 | use DistillerParameters\FontTrait; |
||
51 | |||
52 | /** |
||
53 | * Use color conversion distiller options |
||
54 | */ |
||
55 | use DistillerParameters\ColorConversionTrait; |
||
56 | |||
57 | /** |
||
58 | * Use advanced distiller options |
||
59 | */ |
||
60 | use DistillerParameters\AdvancedTrait; |
||
61 | |||
62 | /** |
||
63 | * Create PDF write device object |
||
64 | * |
||
65 | * @param Ghostscript $ghostscript |
||
66 | * @param Arguments $arguments |
||
67 | */ |
||
68 | 28 | public function __construct(Ghostscript $ghostscript, Arguments $arguments) |
|
74 | |||
75 | /** |
||
76 | * Get output file |
||
77 | * |
||
78 | * @return null|string |
||
79 | */ |
||
80 | 4 | public function getOutputFile() |
|
84 | |||
85 | /** |
||
86 | * Set output file |
||
87 | * |
||
88 | * @param string $outputFile |
||
89 | * |
||
90 | * @return $this |
||
91 | */ |
||
92 | 4 | public function setOutputFile($outputFile) |
|
98 | |||
99 | /** |
||
100 | * Whether output file is stdout. |
||
101 | * |
||
102 | * @return bool |
||
103 | */ |
||
104 | 2 | public function isOutputStdout() |
|
108 | |||
109 | /** |
||
110 | * Set stdout as output. |
||
111 | * |
||
112 | * @return $this |
||
113 | */ |
||
114 | 2 | public function setOutputStdout() |
|
118 | |||
119 | /** |
||
120 | * Get PDF settings |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | 10 | public function getPdfSettings() |
|
128 | |||
129 | /** |
||
130 | * Set PDF settings |
||
131 | * |
||
132 | * @param string $pdfSettings |
||
133 | * |
||
134 | * @throws \InvalidArgumentException |
||
135 | * |
||
136 | * @return $this |
||
137 | */ |
||
138 | 28 | public function setPdfSettings($pdfSettings) |
|
149 | |||
150 | /** |
||
151 | * Get process color model |
||
152 | * |
||
153 | * @return string |
||
154 | */ |
||
155 | 6 | public function getProcessColorModel() |
|
159 | |||
160 | /** |
||
161 | * Set process color model |
||
162 | * |
||
163 | * @param string $processColorModel |
||
164 | * |
||
165 | * @throws \InvalidArgumentException |
||
166 | * |
||
167 | * @return $this |
||
168 | */ |
||
169 | 8 | public function setProcessColorModel($processColorModel) |
|
180 | |||
181 | /** |
||
182 | * {@inheritdoc} |
||
183 | */ |
||
184 | 2 | public function createProcess($input = null) |
|
199 | } |
||
200 |