Pdf-Js v0.1.2 problems

Hello,
I have a problem by using the pdfjs Plugin. I run Grav on XAMPP local on my computer. I#d like to inbett pdf files in my site. But all i can see is this:

this is the coment i tried

[pdfjs=data:file.pdf]

Can someone help me?

Looks like the wrong path. Where did you put your .pdf?
Should be in /user/data folder if you use this code.
Try putting your .pdf in the same folder as the page itself.
and then:

[pdfjs=filename.pdf]

Check if the plugin is enabled:
user/plugins/pdf-js/pdf-js.yaml
Did you read the docs: https://github.com/iusvar/grav-plugin-pdf-js
Check with diffrent browsers.

Hello
I would appreciate a help about pdfjs.

I have a grav+gantry5 test site wherein I have installed PDF-JS, with its dependancy.

When I use [pdfjs=MyTestFile.pdf] in a page, it gives me an error as given below.

Server Error
Sorry, something went terribly wrong!

E_WARNING - strpos(): Empty needle

For further details please review your logs/ folder, or enable displaying of errors in your system configuration.

The Log file is given below. ( It is long)
Log File
[2018-08-10 09:18:59] grav.CRITICAL: strpos(): Empty needle - Trace: #0 [internal function]: Whoops\Run->handleError(2, ‘strpos(): Empty…’, ‘/var/www/gg5/us…’, 49, Array) #1 /var/www/gg5/user/plugins/pdf-js/PDFJsShortcode.php(49): strpos(’/var/www/gg5/us…’, ‘’) #2 [internal function]: Grav\Plugin\Shortcodes\PDFJsShortcode->process(Object(Thunder\Shortcode\Shortcode\ProcessedShortcode)) #3 /var/www/gg5/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Processor/Processor.php(134): call_user_func_array(Array, Array) #4 /var/www/gg5/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Processor/Processor.php(104): Thunder\Shortcode\Processor\Processor->processHandler(Object(Thunder\Shortcode\Shortcode\ParsedShortcode), Object(Thunder\Shortcode\Processor\ProcessorContext), Array) #5 /var/www/gg5/user/plugins/shortcode-core/vendor/thunderer/shortcode/src/Processor/Processor.php(52): Thunder\Shortcode\Processor\Processor->processIteration(’[pdfjs=CastBase…’, Object(Thunder\Shortcode\Processor\ProcessorContext), NULL) #6 /var/www/gg5/user/plugins/shortcode-core/classes/ShortcodeManager.php(227): Thunder\Shortcode\Processor\Processor->process(’[pdfjs=CastBase…’) #7 /var/www/gg5/user/plugins/shortcode-core/shortcode-core.php(97): Grav\Plugin\ShortcodeManager->processContent(Object(Grav\Common\Page\Page), Object(Grav\Common\Data\Data)) #8 [internal function]: Grav\Plugin\ShortcodeCorePlugin->onPageContentProcessed(Object(RocketTheme\Toolbox\Event\Event), ‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\EventDispatcher)) #9 /var/www/gg5/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(RocketTheme\Toolbox\Event\Event), ‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\EventDispatcher)) #10 /var/www/gg5/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\Event)) #11 /var/www/gg5/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php(23): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\Event)) #12 /var/www/gg5/system/src/Grav/Common/Grav.php(283): RocketTheme\Toolbox\Event\EventDispatcher->dispatch(‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\Event)) #13 /var/www/gg5/system/src/Grav/Common/Page/Page.php(668): Grav\Common\Grav->fireEvent(‘onPageContentPr…’, Object(RocketTheme\Toolbox\Event\Event)) #14 /var/www/gg5/user/plugins/shortcode-core/shortcode-core.php(150): Grav\Common\Page\Page->content() #15 [internal function]: Grav\Plugin\ShortcodeCorePlugin->onPageInitialized(Object(RocketTheme\Toolbox\Event\Event), ‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\EventDispatcher)) #16 /var/www/gg5/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(RocketTheme\Toolbox\Event\Event), ‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\EventDispatcher)) #17 /var/www/gg5/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, ‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\Event)) #18 /var/www/gg5/vendor/rockettheme/toolbox/Event/src/EventDispatcher.php(23): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\Event)) #19 /var/www/gg5/system/src/Grav/Common/Grav.php(283): RocketTheme\Toolbox\Event\EventDispatcher->dispatch(‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\Event)) #20 /var/www/gg5/system/src/Grav/Common/Processors/PagesProcessor.php(26): Grav\Common\Grav->fireEvent(‘onPageInitializ…’, Object(RocketTheme\Toolbox\Event\Event)) #21 /var/www/gg5/system/src/Grav/Common/Grav.php(132): Grav\Common\Processors\PagesProcessor->process() #22 /var/www/gg5/system/src/Grav/Common/Grav.php(374): Grav\Common\Grav->Grav\Common{closure}() #23 [internal function]: Grav\Common\Grav::Grav\Common{closure}(‘pages’, ‘Pages’, Object(Closure)) #24 /var/www/gg5/system/src/Grav/Common/Grav.php(350): call_user_func_array(Object(Closure), Array) #25 /var/www/gg5/system/src/Grav/Common/Grav.php(133): Grav\Common\Grav->__call(‘measureTime’, Array) #26 /var/www/gg5/index.php(52): Grav\Common\Grav->process() #27 {main} [] []

Hi,

I did some tests and I found that the format [pdfjs = filename.pdf] does not work in a grav + gantry environment, but the format [pdfjs file = filename.pdf] works.

Thanks for the tip.
I will evaluate what to do.