# pdf-to-video-node

> a package that uses CLI to convert pdf pages into a video (sound and text)

Latest version **1.0.7** (published 2021-09-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install pdf-to-video-node
pnpm add pdf-to-video-node
yarn add pdf-to-video-node
bun add pdf-to-video-node
```

Provides the command `pdfVideo`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2021-09-17 |
| First published | 2021-09-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 470.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ali Hasan |
| Maintainers | aligx97 |
| Keywords | pdfToVideo |

## Links

- npm: https://www.npmjs.com/package/pdf-to-video-node
- Repository: https://github.com/AliGx97/pdf-to-video-node
- Homepage: https://github.com/AliGx97/pdf-to-video-node#readme
- Issues: https://github.com/AliGx97/pdf-to-video-node/issues
- npm.io page: https://npm.io/package/pdf-to-video-node

## Dependencies (15)

- [ora](https://npm.io/package/ora.md) ^5.4.1
- [say](https://npm.io/package/say.md) ^0.16.0
- [clui](https://npm.io/package/clui.md) ^0.3.6
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [clear](https://npm.io/package/clear.md) ^0.1.0
- [figlet](https://npm.io/package/figlet.md) ^1.5.2
- [pdfinfo](https://npm.io/package/pdfinfo.md) ^0.0.3
- [prompts](https://npm.io/package/prompts.md) ^2.4.1
- [videoshow](https://npm.io/package/videoshow.md) ^0.1.12
- [pdf-to-text](https://npm.io/package/pdf-to-text.md) ^0.0.7
- [cli-spinners](https://npm.io/package/cli-spinners.md) ^2.6.0
- [mp3-duration](https://npm.io/package/mp3-duration.md) ^1.1.0
- [fluent-ffmpeg](https://npm.io/package/fluent-ffmpeg.md) ^2.1.2
- [audio-converter](https://npm.io/package/audio-converter.md) ^1.0.13
- [node-html-to-image](https://npm.io/package/node-html-to-image.md) ^3.2.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2021-09-17
- 1.0.6 — 2021-09-12
- 1.0.5 — 2021-09-12
- 1.0.4 — 2021-09-12
- 1.0.3 — 2021-09-12
- 1.0.2 — 2021-09-12
- 1.0.0 — 2021-09-12

## README

# pdf-to-video

## <span style="color:#2895F1;">Installation</span>

Install the package globally using -g

```sh
npm i -g pdf-to-video-node
```

OR

you can just install it and run it using

```
node bin/index.js
```

## <span style="color:#2895F1">Important Note</span>

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).

## <span style="color:#2895F1">Using the package</span>

after installing the package golbally, just run the following command in your terminal `pdfVideo` like:

```sh
~/someDirectory/$ pdfVideo
```

and follow on screen instruction

## <span style="color:#2895F1">Inputs</span>

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)

## <span style="color:#ff2222">NOTE</span>

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.

---
_Source: https://npm.io/package/pdf-to-video-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
