
import io


def process_pdf(binnary_data):
    from pypdf import PdfReader
    reader = PdfReader(io.BytesIO(binnary_data))
    pages = [page.extract_text() or "" for page in reader.pages]
    return "\n".join(pages)
