### Install pdf2pptx Source: https://github.com/kevinmcguinness/pdf2pptx/blob/master/README.md Install the pdf2pptx package using pip. This command should be run in your terminal or command prompt. ```bash pip install pdf2pptx ``` -------------------------------- ### Command Line Interface Usage Source: https://context7.com/kevinmcguinness/pdf2pptx/llms.txt Convert PDF files to PowerPoint using various command-line options for resolution, page range, and output configuration. ```bash # Basic conversion - creates slides.pptx from slides.pdf pdf2pptx slides.pdf # Specify custom output file pdf2pptx slides.pdf -o presentation.pptx # Set resolution to 600 DPI for higher quality images pdf2pptx slides.pdf -r 600 # Convert only pages 5-14 (start from page 5, convert 10 pages) pdf2pptx slides.pdf --from 5 --count 10 # Quiet mode - suppress progress bar and info output pdf2pptx slides.pdf -q # Combined options - high resolution, specific pages, custom output pdf2pptx lecture.pdf -o lecture_slides.pptx -r 450 --from 0 --count 20 -q # View all available options pdf2pptx --help ``` -------------------------------- ### CLI Entry Point Source: https://context7.com/kevinmcguinness/pdf2pptx/llms.txt Invoke the CLI programmatically using the main entry point. ```python from pdf2pptx.cli import main import sys # Run the CLI programmatically (typically called via command line) if __name__ == '__main__': main() # The CLI supports these options: # -o, --output : Output file path (default: PDF_FILE.pptx) # -r, --resolution : DPI resolution (default: 300) # -q, --quiet : Disable progress bar # --from : First page to convert (0-indexed) # --count : Number of pages to convert ``` -------------------------------- ### Convert PDF to PPTX Source: https://github.com/kevinmcguinness/pdf2pptx/blob/master/README.md Convert a PDF file to a PPTX file using the pdf2pptx command-line tool. The output file will be named slides.pptx by default. ```bash pdf2pptx slides.pdf ``` -------------------------------- ### Python API Conversion Source: https://context7.com/kevinmcguinness/pdf2pptx/llms.txt Perform PDF to PowerPoint conversion programmatically using the convert_pdf2pptx function. ```python from pdf2pptx import convert_pdf2pptx from pathlib import Path # Basic conversion with default settings (300 DPI, all pages) convert_pdf2pptx( pdf_file='slides.pdf', output_file='slides.pptx', resolution=300, start_page=0, page_count=None, # None means all pages quiet=False ) # High-resolution conversion with progress suppressed convert_pdf2pptx( pdf_file='presentation.pdf', output_file='presentation.pptx', resolution=600, start_page=0, page_count=None, quiet=True ) # Convert specific page range (pages 10-19) convert_pdf2pptx( pdf_file='long_document.pdf', output_file='excerpt.pptx', resolution=300, start_page=10, page_count=10, quiet=False ) # Automatic output filename (replaces .pdf with .pptx) convert_pdf2pptx( pdf_file='slides.pdf', output_file=None, # Will create 'slides.pptx' resolution=300, start_page=0, page_count=None, quiet=False ) # Batch processing multiple PDFs pdf_files = Path('.').glob('*.pdf') for pdf_path in pdf_files: output_path = pdf_path.with_suffix('.pptx') convert_pdf2pptx( pdf_file=str(pdf_path), output_file=str(output_path), resolution=300, start_page=0, page_count=None, quiet=True ) print(f'Converted: {pdf_path} -> {output_path}') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.