Metadata-Version: 2.4
Name: winzy-convert
Version: 0.0.2
Summary: Mimic's convert to convert images to pdf, ppt etc.
Author: Sukhbinder Singh
License: Apache-2.0
Project-URL: Homepage, https://github.com/sukhbinder/winzy-convert
Project-URL: Changelog, https://github.com/sukhbinder/winzy-convert/releases
Project-URL: Issues, https://github.com/sukhbinder/winzy-convert/issues
Project-URL: CI, https://github.com/sukhbinder/winzy-convert/actions
Classifier: License :: OSI Approved :: Apache Software License
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: winzy
Requires-Dist: pillow
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# winzy-convert

[![PyPI](https://img.shields.io/pypi/v/winzy-convert.svg)](https://pypi.org/project/winzy-convert/)
[![Changelog](https://img.shields.io/github/v/release/sukhbinder/winzy-convert?include_prereleases&label=changelog)](https://github.com/sukhbinder/winzy-convert/releases)
[![Tests](https://github.com/sukhbinder/winzy-convert/workflows/Test/badge.svg)](https://github.com/sukhbinder/winzy-convert/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/sukhbinder/winzy-convert/blob/main/LICENSE)

Mimic's convert to convert images to pdf, ppt etc.

## Installation

First [install winzy](https://github.com/sukhbinder/winzy) by typing

```bash
pip install winzy
```

Then install this plugin in the same environment as your Winzy application.
```bash
winzy install winzy-convert
```
## Usage

There are two commands ``topdf`` and another ``toppt``

### winzy topdf

```bash
usage: winzy topdf [-h] [-i IMAGEFILE] [-o OUTPUT] pattern

Mimic's convert to convert images to pdf.

positional arguments:
  pattern               Pattern matching the PNG images (e.g., e:\temp\*.png)

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGEFILE, --imagefile IMAGEFILE
                        supply files with this option.
  -o OUTPUT, --output OUTPUT
                        Output pdf file name
```

### winzy toppt

```bash
usage: winzy toppt [-h] [-o OUTPUT] [-i IMAGEFILE] pattern

Mimic's convert to convert images to ppt

positional arguments:
  pattern               Pattern matching the PNG images (e.g., e:\temp\*.png)

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output pdf file name
  -i IMAGEFILE, --imagefile IMAGEFILE
                        supply files with this option.

````

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd winzy-convert
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```
