We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Forge_fdf generates weird characters in keys and values of the data I give it. Since it changes the keys, the output pdf forms aren't modified.
When manually removing these characters, it works very well.
Characters as seen by notepad++ :
The text was updated successfully, but these errors were encountered:
Here's my little (and dirty) workaround :
def smart_encode_str(s): """Create a UTF-16 encoded PDF string literal for s.""" try: utf16 = s.encode('utf_16_be') except AttributeError: # ints and floats utf16 = str(s).encode('utf_16_be') safe = utf16.replace(b'\x00)', b'\x00)').replace(b'\x00(', b'\x00(').replace(b'\x00','') return b''.join((codecs.BOM_UTF16_BE, safe))[2:]
s
Sorry, something went wrong.
Seems to still be an issue:
Is there a quick fix for this?
How does this look now that #16 was merged?
No branches or pull requests
Forge_fdf generates weird characters in keys and values of the data I give it.
Since it changes the keys, the output pdf forms aren't modified.
When manually removing these characters, it works very well.
Characters as seen by notepad++ :
The text was updated successfully, but these errors were encountered: