Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Pdf-js, only one embedded frame per page?

Started by David Ing 8 years ago · 1 replies · 812 views
8 years ago

I've just started using pdf-js on a Getgrav web site, and it's great.

One question: I just tried embedding two PDF presentations on the same page. The top one shows up great (e.g. I can scroll to p 9 of 9), but the second one only shows the header bar (with a page number of 1) and the body is empty.

I'll do a workaround. In the meantime ...

(1) Does anyone have more than one PDF embedded on a single page?

(2) The documentation at https://github.com/iusvar/grav-plugin-pdf-js says the shortcode format is [pdfjs option1="value1" option2="value2" ... /] , but then doesn't list any more options than "file" and "data". Has anyone used any additional options?

8 years ago

Hi,

  1. for now you can embed only one pdf ... I'm looking for a suitable solution

  2. the format of the options is just an example, I have exaggerated with the options, in fact you need only one parameter

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago