MellowKyler / pdfp

PDF Processor - a GUI for some common PDF operations.
https://pypi.org/project/pdfp
GNU Affero General Public License v3.0
2 stars 0 forks source link

Add Operation Chaining #1

Open MellowKyler opened 2 months ago

MellowKyler commented 2 months ago

Allow users to create operation chains to perform actions back to back. Example: epub|crop|ocr would take an epub as input, run Briss auto-cropping, and then run OCR on the Briss output.

Implementation details:

UI:

MellowKyler commented 2 months ago

8f572d8

MellowKyler commented 1 month ago

likely add another argument to each operation indicating chaining - button toggle and what to return

MellowKyler commented 1 month ago

from multiprocessing import Process

def ocrmypdf_process(): ocrmypdf.ocr('input.pdf', 'output.pdf')

def call_ocrmypdf_from_my_app(): p = Process(target=ocrmypdf_process) p.start() p.join()