Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pptxfa-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pptxfa-1.0.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file pptxfa-1.0.0.tar.gz.

File metadata

  • Download URL: pptxfa-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pptxfa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 25b37499964de092f3c5295ce3f101ef7c806e41544b938021cc9b3c1ee017c0
MD5 de631a01e9ace95ccb860088dfb7983d
BLAKE2b-256 721b10c48fc009f14c1a15814ca53f32d94fac00752d9638c7a89ad9f0f21c31

See more details on using hashes here.

File details

Details for the file pptxfa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pptxfa-1.0.0-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

Hashes for pptxfa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 334e4af9bba9dc686225f5d1b3c7f44751cfb094ce173af184b533de0eb6edf7
MD5 99ba7b9d9f4dd19315b0c12dd43583dc
BLAKE2b-256 000a100e9838a9bbc307fa1846c66638d7e9f47605d35dabddcc5caf99559abb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page