@@ 203-215 (lines=13) @@ | ||
200 | /** |
|
201 | * {@inheritDoc} |
|
202 | */ |
|
203 | public function generateFromHtml($html, $output, array $options = [], $overwrite = false) |
|
204 | { |
|
205 | $fileNames = []; |
|
206 | if (is_array($html)) { |
|
207 | foreach ($html as $htmlInput) { |
|
208 | $fileNames[] = $this->createTemporaryFile($htmlInput, 'html'); |
|
209 | } |
|
210 | } else { |
|
211 | $fileNames[] = $this->createTemporaryFile($html, 'html'); |
|
212 | } |
|
213 | ||
214 | $this->generate($fileNames, $output, $options, $overwrite); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * {@inheritDoc} |
|
@@ 234-248 (lines=15) @@ | ||
231 | /** |
|
232 | * {@inheritDoc} |
|
233 | */ |
|
234 | public function getOutputFromHtml($html, array $options = []) |
|
235 | { |
|
236 | $fileNames = []; |
|
237 | if (is_array($html)) { |
|
238 | foreach ($html as $htmlInput) { |
|
239 | $fileNames[] = $this->createTemporaryFile($htmlInput, 'html'); |
|
240 | } |
|
241 | } else { |
|
242 | $fileNames[] = $this->createTemporaryFile($html, 'html'); |
|
243 | } |
|
244 | ||
245 | $result = $this->getOutput($fileNames, $options); |
|
246 | ||
247 | return $result; |
|
248 | } |
|
249 | ||
250 | /** |
|
251 | * Defines the binary |