Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Bad encoding of Hindi Text #503

@nikkiBot

Description

@nikkiBot
  • I have a PDF that I wish to extract the table from. The package worked perfectly on most of the pdfs on which I used it before. But this time, I'm getting gibberish in English instead of Hindi Text.
  • Note that Dependencies are properly installed and that wouldn't be the issue here. This is what I'm doing:
    pdf = "./Pradhanjee.pdf"
    table = camelot.read_pdf(pdf, pages="all",flavor='lattice')
    df = []
    for i in range(len(table)):
    df.append(table[i].df)
    new_df = pd.DataFrame()
    for i in range(len(df)):
    new_df = pd.concat([new_df, df[i]], axis=0)
    new_df.to_excel(f"{title}.xlsx", index=False)
    new_df
    image
    I'm not sure why this is happening. Any help would be appreciated :')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions