A Python library for creating .pptx files with Persian/Arabic RTL support
Project description
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
pip install pptxfa
Usage
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pptxfa-1.0.2.tar.gz.
File metadata
- Download URL: pptxfa-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92425a5c88f55332ccea6134afdffe893149cede75570142aa841fe05a465eb4
|
|
| MD5 |
09d0c6fb341ef860bf4c0aced12699be
|
|
| BLAKE2b-256 |
ecfa9b4c67018cc133dc825a9a99a8667c848bd8b5194e186d095018f215fdb7
|
File details
Details for the file pptxfa-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pptxfa-1.0.2-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e3296feef9f07c7dcfd7773d19bddb58e40f543d113ceb9bad834675f4d1a0
|
|
| MD5 |
e53078876a86c2f414af419f9fa03638
|
|
| BLAKE2b-256 |
ed575cfb979889ed632685e3825926ce0558928830ea9a6de42fe8789f76957f
|