I'm trying to implement the plugin in a SharePoint Online environment, using Flipbook to display a PDF.
Unfortunately, the PDF fails to load most of the time. It seems to be an intermittent issue, and even when it does load, only a few of the first pages are displayed.
Since I'm working in an intranet environment, I'm unable to share the actual page for review, but here is the code I'm using:
document.addEventListener("DOMContentLoaded", function () { const pdfUrl = getQueryParam("pdf"); if (!pdfUrl) { jQuery("#container").html("No PDF specified in the URL."); return; }
const container = document.getElementById("container");
const options = {
pdfUrl,
};
new FlipBook(container, options);
});
The page doesn't show any network or console errors, and the PDF seems to be fetched correctly — the page thumbnails are even displayed in the page preview.
You guys have any suggestions for resolving this?