pdf flipbook amp compliant?

QuestionsCategory: PDF Light Viewerpdf flipbook amp compliant?
Cees asked 12 months ago

Using an amp url with an embedded pdf viewer (using PDF Light viewer) does not display correct.
See: https://nicolettedeboer.com/leerhulp/rekenen-groep-7/amp/
Standard url with correct pdf view: https://nicolettedeboer.com/leerhulp/rekenen-groep-7
How to fix this issue?

Question Tags:
1 Answers
supportsupport answered 10 months ago

Hello Cees,
I don’t have much experience in AMP pages, but as far as I can see after some search, AMP pages don’t support javascript https://stackoverflow.com/a/43748748/741782
This means that any plugins on your site, which require javascript (as PDF Light Viewer for example) won’t work.
As a workaround you can try to embed PDF Light Viewer inside iframe tag ( https://www.ampproject.org/docs/guides/iframes )