ibra-kdbra / Paginis

A PDF flipbook that can be useful for viewing a PDF file as a book with a realistic experience.
https://paginis.vercel.app
Apache License 2.0
13 stars 1 forks source link

Share URL parameter does not work #2

Open magnusmanske opened 1 week ago

magnusmanske commented 1 week ago

First, I saw this on Lemmy, and it's fantastic!

I am trying to make it work as a viewer for PDFs from Wikimedia Wikis (usually Commons), which are all free to use (PD or free license).

It works when I load it on the page, but the share URL only shows the default book. Example: https://paginis.vercel.app/?pdf=https://upload.wikimedia.org/wikipedia/commons/0/06/New_Zealand_History.pdf#flipbook-flipbookContainer/1/

I understand if you want maybe to not allow this for copyright reasons, but maybe you can whitelist upload.wikimedia.org ?

ibra-kdbra commented 1 week ago

Glad you like it!

To be honest, I didn’t develop the sharing feature for this project—it was already built into the dflip_jquery library.

I’ll try to fix this if I have time next month. The main issue is that each time the page reloads (the DOM tree), it defaults to loading the website's built-in PDF URL, which isn’t ideal.

Thanks for the feedback!