pdf-2-pptx
v1.0.0
Published
High-performance PDF to PPTX converter with Split-and-Conquer logic, OCR support, and high-fidelity Ghostscript optimization.
Maintainers
Readme
PDF to PPTX Converter
A simple and efficient CLI tool to convert PDF files into high-quality PPTX presentations with dynamic splitting, OCR deciphering and automated Ghostscript optimization.
Features
- Unified Support: Seamlessly handles both standard and image-only
.pdffiles. - Smart OCR Engine: Automatically applies OCR to scanned PDFs if detected.
- Dynamic Splitting: Automatically calculates page chunks to prevent memory clipping/limits.
- Data Optimization: Intelligent font embedding and automatic prepress quality via Ghostscript.
- Cross-Platform: Works on Windows, Linux, and macOS (including WSL2).
- Local File Support: Convert local PDF files easily.
- Minimal Configuration: Sensible defaults for high-quality output.
Installation
Local Installation
npm installGlobal Installation (Use everywhere)
To use the pdf-2-pptx command from any folder on your machine:
npm install -g .Usage
Local Usage
node convert.js <FilePath>Global Usage (if installed globally)
pdf-2-pptx <FilePath>Examples
Convert a single local PDF file:
pdf-2-pptx ./presentation.pdfPrerequisites for WSL2 Users
If you are running this on WSL2, you may need to install the following dependencies. Note that for certain distributions, some packages may have specific version suffixes.
sudo apt update && sudo apt install -y qpdf poppler-utils libreoffice ghostscript ocrmypdf python3-pip
pip install python-pptxLicense
Unlicense
