Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Changing options from declaration vs changing defaults #4

Open
AleksSv opened this issue Oct 15, 2016 · 0 comments
Open

Changing options from declaration vs changing defaults #4

AleksSv opened this issue Oct 15, 2016 · 0 comments

Comments

@AleksSv
Copy link

AleksSv commented Oct 15, 2016

I was having issues using a different zoom, initially I was putting the options in the declaration, but it was giving me these errors.

PHP Warning: file_get_contents([my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/../output/5801992b919f9/1301430983-1.html): failed to open stream: No such file or directory in [my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/Pdf.php on line 150

PHP Fatal error: Uncaught exception 'BadMethodCallException' with message 'Please set some HTML first before calling emogrify.' in [my_dirs]]/vendor/pelago/emogrifier/Classes/Emogrifier.php:285
Stack trace:
#0 [my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/Html.php(89): Pelago\Emogrifier->emogrify()
#1 [my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/Html.php(47): TonchikTm\PdfToHtml\Html->setInlineCss(false)
#2 [my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/Pdf.php(151): TonchikTm\PdfToHtml\Html->addPage(1, false)
#3 [my_dirs]]/vendor/tonchik-tm/pdf-to-html/src/Pdf.php(90): TonchikTm\PdfToHtml\Pdf->getContent()
#4 [my_dirs]]/[my_php_file].php(41): TonchikTm\PdfToHtml\Pdf->getHtml()
#7 {main}

thrown in [my_dirs]]/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 285

Changing the default zoom fixed my problem, but I think the generate options is bugged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant