Compress a PDF file using python

Job ID: 35017718

Budget: $40 – $50 USD

I need a python script which:

1. run on windows.
2. will get as an input: file path to a pdf file with text layer (an ocr layer), compress parameter.
3. the script will compress the file with compress parameter (1 - 10%, 2- 20%, 3- 30%... 8 - 80%etc.)
e.g. 1 means 10%, 2 means 20% etc.
the text must be kept in the pdf file
Related categories: Python Software Architecture PDF OCR