Install easyofd via pip
masterInstall the easyofd library using the standard Python package manager.
pip install easyofdrepository·master·Indexed 19 days ago
https://github.com/renoyuan/easyofdA Python library for parsing and converting OFD (Open Formatted Document) files. It supports conversions between OFD, PDF, and image formats (JPG), and includes a GUI tool for performing these operations.
Install the easyofd library using the standard Python package manager.
pip install easyofdThe library provides capabilities for parsing OFD files and performing various format conversions.
Supported features include:
For comprehensive usage examples covering all available functions, refer to the test/demo.py file in the repository.
# Refer to test/demo.py for complete implementation examplesThe GUI provides radio buttons to select one of the following conversion modes:
ofd2pdf: Converts OFD files to PDF.ofd2img: Converts OFD files to JPG images.pdf2ofd: Converts PDF files to OFD.pdf2img: Converts PDF files to JPG images.img2ofd: (Placeholder) Converts images to OFD.img2pdf: (Placeholder) Converts images to PDF.Users must provide an Input Path (directory containing source files) and an Output Path (directory where converted files will be saved).
The GUI uses the following internal logic to handle file data before passing it to the easyofd.OFD engine:
self.ofd.read(ofdb64).self.ofd.pdf2ofd(pfdbyte) or self.ofd.pdf2img(pfdbyte).filename_{index}.jpg).The gui/main.py file serves as the entrypoint for the graphical user interface. It provides a visual way to perform OFD conversions using the easyofd library. The GUI supports several conversion modes including OFD to PDF, OFD to Image, PDF to OFD, and PDF to Image.
To run the GUI, ensure you have the necessary dependencies installed (specifically PyQt6 and Pillow) and execute the script using Python.
python gui/main.pyBefore submitting an issue, please consult the following resources:
.tar archive before sending.