Skip to content

A package that can be installed globally and be used in the CLI using command 'pdfVideo'

Notifications You must be signed in to change notification settings

AliGx97/pdf-to-video-node

Repository files navigation

pdf-to-video

Installation

Install the package globally using -g

npm i -g pdf-to-video-node

OR

you can just install it and run it using

node bin/index.js

Important Note

1- For the package to work, you need to install ffmpeg CLI tools and SOX as well.

2- I only tested it on a Mac (OSX os).

Using the package

after installing the package golbally, just run the following command in your terminal pdfVideo like:

~/someDirectory/$ pdfVideo

and follow on screen instruction

Inputs

The app will ask you for following inputs (not in the same order):

1- the pdf file path.

2-the number of page to start video from

3- the number of the last page included in the video (note: If you want only one page say page 6 , both inputs should be the number 6)

4- the speed of reading speech

5- the language of file (and voice if possible)

NOTE

This project was intended just for the purpose of learning and it is slow while generating the video since the process itself takes time (it generates text from pdf file that gets converted to images, then the images to seperate videos (each image becomes a seperate video) then it merges all the part videos together).

p.s:

Sorry if the documentation is bad, I will explain the package a lot better when I get the time for it.

About

A package that can be installed globally and be used in the CLI using command 'pdfVideo'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published