LukeTowers / oc-snappypdf-plugin

SnappyPDF integration for OctoberCMS
MIT License
12 stars 8 forks source link

I can not install the plugin #5

Closed mihailbishkek closed 5 years ago

mihailbishkek commented 5 years ago

I tried all the ways, and it’s impossible to install. Please, help....

Composer return error:

изображение

Plugin after install return: изображение

LukeTowers commented 5 years ago

@mihailbishkek looks like you're using Windows. You can try using the Windows branch of the plugin https://github.com/LukeTowers/oc-snappypdf-plugin/tree/windows-support and see if you can get that working fully. If you can, then please make any required PRs and confirm that the branch is ready to be merged into master.

mihailbishkek commented 5 years ago

@LukeTowers Yes, I am use it on Windows.

I clone windows-support tree, and install this package to plugins\luketowers\snappypdf\vendor\wkhtmltopdf\ изображение

I just have this error: изображение

mihailbishkek commented 5 years ago

My config is


                'pdf' => array(
                    'enabled' => true,
                    'binary'  => env('SNAPPY_PDF_BINARY', plugins_path('luketowers/snappypdf/vendor/wkhtmltopdf/bin/wkhtmltopdf.exe')),
                    'timeout' => false,
                    'options' => array(),
                    'env'     => array(),
                ),
                'image' => array(
                    'enabled' => true,
                    'binary'  => env('SNAPPY_IMAGE_BINARY', plugins_path('luketowers/snappypdf/vendor/wkhtmltopdf/bin/wkhtmltoimage.exe')),
                    'timeout' => false,
                    'options' => array(),
                    'env'     => array(),
                ),
            ],```
LukeTowers commented 5 years ago

@mihailbishkek did you try running php artisan october:env to generate a .env file and then specifying the config using ENV vars instead of the config file? It's possible that the config file isn't properly used when detecting the binary path to use while the .env file is fully supported.

mihailbishkek commented 5 years ago

изображение

mihailbishkek commented 5 years ago

I make .env file. And now I have this error:

изображение

LukeTowers commented 5 years ago

@mihailbishkek make sure that the path is an absolute path, you're still using a local one.