Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotated pdf not work #206

Open
Juan-hwt opened this issue Jul 25, 2024 · 0 comments
Open

rotated pdf not work #206

Juan-hwt opened this issue Jul 25, 2024 · 0 comments

Comments

@Juan-hwt
Copy link

i-2_清新农商行.pdf

from img2table.document import PDF
from img2table.ocr import PaddleOCR
src='i-2_清新农商行.pdf'
dest='i-2_清新农商行.xlsx'

doc = PDF(
    src,
    detect_rotation=True,
    pdf_text_extraction=True
)

ocr = PaddleOCR(lang="ch")

doc.to_xlsx(dest=dest,
            ocr=ocr,
            implicit_rows=False,
            borderless_tables=True,
            min_confidence=50)

I have setted detect_rotation, but it not work ,can not rotate automatically

How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant