document_new_from_data() arg1 must be without null bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Poppler Python Bindings |
In Progress
|
Medium
|
Gian Mario Tagliaretti | ||
web2-Conf |
In Progress
|
Medium
|
Unassigned | ||
python-poppler (Ubuntu) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
on the poppler list Albert says:
"the argument 1 must be string without null bytes" problem is a bug
either in the python binding or in the glib binding the python sits on top
of.
>>> import poppler
Xlib: extension "RANDR" missing on display ":0.0".
>>> from gtk.gdk import Pixbuf,
>>> pdf=open(
>>> pixbuf = Pixbuf(
>>> p = poppler.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: document_
Just to be sure it was really looking for 0's:
>>> pdf=(pdf.
>>> p = poppler.
(no error)
Changed in python-poppler: | |
status: | New → In Progress |
Changed in poppler-python: | |
assignee: | nobody → Gian Mario Tagliaretti (gianmt) |
importance: | Undecided → Medium |
milestone: | none → development |
I think the answer is around here somewhere:
https:/ /code.fluendo. com/pigment/ trac/browser/ trunk/libs/ codegen/ argtypes. py?rev= 966#L114
# allows strings with embedded NULLs.