Metadata-Version: 2.4
Name: pptxfa
Version: 1.0.2
Summary: A Python library for creating .pptx files with Persian/Arabic RTL support
Home-page: https://github.com/yourusername/pptxfa
Author: Your Name
Author-email: Your Name <your.email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/pptxfa
Project-URL: Repository, https://github.com/yourusername/pptxfa
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# pptxfa

pptxfa is a Python library for creating .pptx files with Persian/Arabic RTL (Right-to-Left) support. This library allows you to create PowerPoint presentations from scratch with full support for RTL (Persian/Arabic) and LTR (English) text, including mixed content.

## Features

- Create PowerPoint presentations from scratch
- Full RTL (Right-to-Left) support for Persian/Arabic text
- Support for mixed RTL/LTR content
- Customizable text properties (font, size, color, alignment)
- Support for different slide layouts

## Installation

```bash
pip install pptxfa
```

## Usage

```python
from pptxfa import PptxEditor

# Create a new presentation
editor = PptxEditor()
editor.create_presentation()

# Add a title slide
title_props = {
    'font_name': 'Vazirmatn',
    'font_size': 24,
    'bold': True,
    'rtl': True
}
subtitle_props = {
    'font_name': 'Vazirmatn',
    'font_size': 18,
    'rtl': True
}
editor.add_title_slide(
    title="عنوان ارائه",
    subtitle="زیرعنوان ارائه",
    title_properties=title_props,
    subtitle_properties=subtitle_props
)

# Add a content slide
content_props = {
    'font_name': 'Vazirmatn',
    'font_size': 16,
    'rtl': True
}
editor.add_content_slide(
    title="اسلاید محتوا",
    content="متن محتوای اسلاید",
    title_properties=title_props,
    content_properties=content_props
)

# Save the presentation
editor.save("presentation.pptx")
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.
