Pdfplumber with Arabic language

Viewed 25

I have made code to extract a data form table, and there are two languages (Arabic and English).

For extracted English it's very nice reading from right to left; for extracted Arabic text, it's reading the same, from right to left, where it should be from left to right.

For that I need your support to edit my below code for extracting Arabic text:

def extract_whole():
    pdf = pdfplumber.open("10.pdf")
    n = len(pdf.pages)
    for page in range(n):
        f = pdf.pages[page].extract_tables()

extract_whole()
0 Answers
Related