You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test-tib-metadata.py", line 6, in <module>
pdf.output("test-tib.pdf")
File "/home/eroux/.local/lib/python3.7/site-packages/fpdf/fpdf.py", line 4492, in output
self.buffer = output_producer.bufferize()
File "/home/eroux/.local/lib/python3.7/site-packages/fpdf/output.py", line 442, in bufferize
self._out(pdf_obj.serialize(_security_handler=fpdf._security_handler))
File "/home/eroux/.local/lib/python3.7/site-packages/fpdf/output.py", line 462, in _out
data = data.encode("latin1")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 61-63: ordinal not in range(256)
I notice that the PHP FPDF has an option for UTF8 metadata, perhaps a similar option could be implemented?
The text was updated successfully, but these errors were encountered:
This has not been released in a new version of fpdf2, but you can already test it using the latest, unreleased, development version straight from the development branch of this repository:
When running the following:
I get
I notice that the PHP FPDF has an option for UTF8 metadata, perhaps a similar option could be implemented?
The text was updated successfully, but these errors were encountered: