Skip to content

can't concat str to bytes EASY FIX -- please update! #79

@jstofel

Description

@jstofel

Hi! We discovered that the can't concat str to bytes error on load() can be fixed :
you must fix a bug on line 271 of pdfquery version 0.4.3 by adding .encode() to the end of page_label

Current:

    if 'P' in label_format:
        page_label = label_format['P']+page_label

Update to:

    if 'P' in label_format:
        page_label = label_format['P']+page_label.encode()

Note to newbies: to find where pdfquery.py is installed, reinstall it and read the path
python -m pip install pdfquery

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions