2. On the server (SSH)
cd ~/domains/pdfnio.com/public_html- Upload the
downloads/folder (or at least the.shfile), then on the server:curl -fLO https://pdfnio.com/downloads/install-pdf-cli-hostinger.sh(static URL, not/download/). - Run:
bash install-pdf-cli-hostinger.sh
3. On your PC (ZIP instead)
- Unzip the file.
pip install -r requirements.txtthenpython3 pdf_text_smart_edit.py input.pdf out.pdf "old text" "new text" 0
Page index:0= first page.
4. Hostinger notes
Shared hosting (normal web): your site is PHP. You usually cannot run this Python script on the server. Use the tools on this computer, then upload the resulting PDF if needed.
VPS with SSH and Python 3: upload the same files (or the whole project), create a venv, pip install -r requirements.txt, then run the script over SSH—same as on a local machine.
5. What’s in the ZIP
requirements.txt—pymupdfpdf_text_smart_edit.py— CLI editorget_text_properties_pdfjs.js— reference for browser/pdf.jsHOSTING.txt— short notes in Arabic