Skip to content

Instantly share code, notes, and snippets.

View matahariramadhan's full-sized avatar
🏠
Working from home

Matahari Ramadhan matahariramadhan

🏠
Working from home
View GitHub Profile
import pdfplumber
import argparse
import os
def convert_pdf_to_txt(pdf_path, txt_path, no_page_numbers):
"""
Converts a single PDF file to a TXT file with page separators.
Args:
pdf_path (str): The full path to the input PDF file.