Demo project with source code Display PDF files dynamically in flipbook format at web page in asp.net c#
Display PDF files dynamically in flipbook format at web page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Tahir AnsariRank #366 · 6.8K reputationPosted Oct 20, 2023, 10:44 AM EDT
Create a new ASP.NET Web Forms project.
Download and include the Turn.js library in your project. You can include it by downloading the library and adding it to your project's folder structure or by referencing it from a CDN. In this example, I'll use a CDN:
Create a JavaScript function to load and display the PDF in flipbook format. You can use a PDF.js library for rendering the PDF:
$(document).ready(function () { // Define the path to your PDF file var pdfPath = "your_pdf.pdf"; // Initialize the flipbook $("#flipbook").turn(); // Load the PDF using PDF.js PDFJS.getDocument(pdfPath).then(function (pdf) { for (var i = 1; iMake sure you have the necessary JavaScript and CSS dependencies loaded in your HTML, as shown in the code.
When you run your ASP.NET application, it will display the PDF in a flipbook format.