Giter Site home page Giter Site logo

pdf_to_h5p_converter's Introduction

PDF to h5p Converter

This code is used to convert the PDF files into a h5p interactive slide for uploading it to learning management sites like moodle

Prerequisites

To use the code you might need the following packages

  • pdftoppm ( can install using sudo apt-get install pdftoppm on Ubuntu/Debian based versions)
  • python3
  • pyyaml ( python package for yaml files , can install it using pip install pyyaml)

Installation

There is no specifix installation instructions for the same. Just clone the code using git clone https://github.com/thivinanandh/pdf_to_h5p_converter.git

Run

  • Once cloned, Navigate inside the "pdf_to_h5p_converter" folder using cd pdf_to_h5p_converter
  • Copy the PDF that you have to convert into the current folder
  • Then just run python3 generateh5p.py <pdfFileNameToBeConverted> For Eg: python3 generateh5p.py lecture.pdf
  • The program also accepts additional parameters such as dpi and resolution of the image. The default values are dpi=600 and resolution=1920. If you have to change the parameters, then run using
python3 generateh5p.py Lect02-CompArchi.pdf --dpi 600 --resolution 1920
  • The h5p file will be generated on the root folder itself.

pdf_to_h5p_converter's People

Contributors

thivinanandh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.