-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-text-extractionFrom a users perspective, text extraction is the affected feature/workflowFrom a users perspective, text extraction is the affected feature/workflow
Description
I am trying to get the text from a pdf written in French. I am having trouble with some symbols from the text (é. û, ç, etc).
I am reading the documentation of the function extractText() and I see it says "This works well for some PDF files, but poorly for others, depending on the generator used." so I don't know if the poor behaviour I am getting is because of the lack of choosing a generator.
I am using the next piece of code:
from PyPDF2 import PdfFileReader
reader = PdfFileReader("example.pdf")
page = reader.getPage(2)
page.extractText()Should I choose a generator in any part of my code or this is normal behaviour for certain pdfs?
Thank-you in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-text-extractionFrom a users perspective, text extraction is the affected feature/workflowFrom a users perspective, text extraction is the affected feature/workflow