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

to_unicode() function missing #2

Open
Wombatpm opened this issue Apr 25, 2022 · 1 comment
Open

to_unicode() function missing #2

Wombatpm opened this issue Apr 25, 2022 · 1 comment

Comments

@Wombatpm
Copy link

Your code makes use of a to_unicode() function. I think this is a holdover from python 2.7 and is no longer required for python 3.X

@summerswallow
Copy link

The to_unicode() method is not a method of a standard string library. The object which to_unicode is a method of is an instance of PdfString as part of the pdfrw library which is the correct way to move from the pdfrw string world to the "normal python string" world. This code was written under Python 3.

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

2 participants