79237372

Date: 2024-11-29 14:11:00
Score: 1
Natty:
Report link
import pdfplumber

file = 'sample_page.pdf'
pdf = pdfplumber.open(file)
page = pdf.pages[0]
text = page.extract_text(line_dir_render="ttb", char_dir_render="rtl")
print(text[:110])

This will give the perfect result without manual reverse of the string by code.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Milan Thumar