Recommend this page to a friend!
  Classes of Eray Akartuna   JavaScript PDF Flipbook   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: JavaScript PDF Flipbook
Browse PDF document like a book turning its pages
Author: By
Last change: Update
Date: 2 months ago
Size: 1,271 bytes


Class file image Download

PDF Flipbook

Convert your PDFs into interactive flipbooks using the Pdf flipbook converter powered by turnjs and pdfjs libraries.

## Installation

  1. Node.js and npm: - Make sure you have Node.js and npm installed. You can download them from here.
  2. Install http-server:
    - Open your terminal and run the following command to install `http-server` globally:
      npm install -g http-server


  1. Navigate to Your Project Directory:
    - Open the terminal and go to the directory where your index.html, CSS, and JS files are located:
      cd /path/to/your/project
  2. Start http-server:
    - Run the following command to start the server:
    - The server will provide you with a URL (e.g., where your project is being served.
  3. Access Your Project: - Open your web browser and navigate to the provided URL.
  4. Stop http-server: - To stop the server, go back to the terminal where it is running and press `Ctrl+C`.

Source File

Define PDF Src

to define the src, open pdfjs/viewer.js and change to line 30.

var DEFAULT_URL =  "compressed.tracemonkey-pldi-09.pdf";