Python script

Job ID: 37259858

Budget: $250 – $750 USD

Hey thank you for reading.

I am looking for a short Python script to be able to convert the first 2 letters of each word in a PDF file into capital letter.

- I want the script to take as input PDF and EPUB formats and output the document in the same format and same font and internal text structure but with the 2 first letters of each word in Capital Letter.

Example:

Input PDF file:

It as announcing it me stimulated frequently continuing. Least their she you now above going stand forth. He pretty future afraid should genius spirit on. Set property addition building put likewise get. Of will at sell well at as.


Output: SAME FILE FORMAT

IT AS ANnouncing IT ME STimulated FRequently COntinuing. LEast THeir SHe YOu NOw ABove GOing STand FOrth. HE PRetty FUture AFraid SHould GEnius SPirit ON. SEt PRoperty ADdition BUilding PUt LIkewise GEt. OF WIll AT SEll WEll AT AS.

- If word already starts with capital letter, keep it capitalized
- If just 2 or 1 letter word, Capitalize all the word. (ex: of, if, he, a, or, etc)

- Some PDFs will have pictures in them. I want the script to respect the pictures and format of the input document.

- I want this script to be able to run on the latest python up to date.

Best