This repository contains scripts created to automate various tasks during my social service internship.
-
renameFilesGUI.py: A GUI application for renaming PDF files based on the text extracted from the first page using OCR. It uses
tkinterfor the GUI,pdf2imagefor converting PDFs to images, andpytesseractfor OCR. -
renameFiles.py: A script for renaming PDF files based on the text extracted from the first page using OCR. It uses
pdf2imagefor converting PDFs to images, andpytesseractfor OCR. -
remove_dates.js: A script for updating a Google Form's dropdown options based on the availability of dates in a Google Sheet. It uses Google Apps Script to interact with Google Forms and Sheets.
- Run the script:
python renameFilesGUI.py - Select the input folder containing the PDFs to be renamed.
- Select the output folder where the renamed PDFs will be saved.
- Click "Ejecutar" to start the renaming process.
- Update the paths for
pdf_folder,output_folder,poppler_path, andtesseract_cmdin the script. - Run the script:
python renameFiles.py
- Open the script in the Google Apps Script editor.
- Update the
formIdandsheetIdwith the correct IDs. - Run the
updateFormOptionsfunction to update the form options based on the availability of dates in the Google Sheet.
- Python 3.x
pdf2imagelibrarypytesseractlibrarytkinterlibrary (forrenameFilesGUI.py)- Google Apps Script (for
remove_dates.js)