I would really need the state function poppler.document_new_from_data to
work. Is there any advance on this?
Using the GObject Inspection somehow does not wokr me (I get a
segmentation fault)...
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed
Is there already a patched poppler deb package with static bindings?
Importing the gi based version results in (other modules in namespace:
cStringIO, math, warnings, cairo, wx, wx.lib.wxcairo, rsvg):
from gi.repository import Poppler
File /usr/lib/python2.7/dist-packages/gi/__init__.py, line
Well, you could try to use the introspection bindings for the other
packages too (in this case, I think it is only rsvg that needs to be
changed)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/312462
Oh, duh, `gir1.2-poppler-0.18` on ubuntu. Was blind to it.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/312462
Title:
document_new_from_data() arg1 must be without null bytes
To manage
BenjaminBerg, this wasn't obvious. I'm glad to hear there is something
replacing the bindings and it's not just that it is totally dead.
However, if I try and use it:
from gi.repository import Poppler
ERROR:root:Could not find any typelib for Poppler
I can't see any obvious packages that I
Ping. I really want to use poppler-python and stuff like this makes me
cringe.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/312462
Title:
document_new_from_data() arg1 must be without null bytes
I would strongly suggest everyone to move to the GObject Introspection
based bindings. These bindings basically make the static bindings
obsolete.
Though it looks like the array length annotation is missing for the
data input. But it does work already.
from gi.repository import Poppler
If this patch is valid, can it be merged, please?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/312462
Title:
document_new_from_data() arg1 must be without null bytes
To manage notifications about
My first patch didnt contain code to free the memory of the poppler
code.
** Patch added: Added python memory management so the memory of the C code is
released when the python object is free'd
Ok,
as this bug is open for 4 years now, I spent the afternoon fixing it.
The solution was quite easy.
The auto generated wrapping from the .defs file is not sufficient. I
added a method to the .override file, which solves the problem.
The problem was, that the C function requires a char
Did somebody find a solution to this? In Scientific Linux 6.2 and Debian
Squeeze the bug is still present.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/312462
Title:
document_new_from_data() arg1
Hm, just a note. I don't think that the python version of the function
should even have the length parameter, unfortunately, it might be hard
to remove it at this point (it could instead be just ignored, and made
optional).
The bindings should just call len(data) themselves, instead of leaving
it
** Changed in: poppler-python
Importance: Undecided = Medium
** Changed in: poppler-python
Milestone: None = development
** Changed in: poppler-python
Assignee: (unassigned) = Gian Mario Tagliaretti (gianmt)
--
document_new_from_data() arg1 must be without null bytes
Looking at the attachments in this bug report, I noticed that
poppler.defs.diff was not flagged as a patch. A patch contains
changes to an Ubuntu package that will resolve a bug and this attachment
is one! Subsequently, I've checked the patch flag for it. In the
future when submitting patches
simple test:
fail:
c...@asus17:~/tss$ python -c import poppler;
poppler.document_new_from_data('\x00',1,password='')
Xlib: extension RANDR missing on display localhost:13.0.
Traceback (most recent call last):
File string, line 1, in module
TypeError: document_new_from_data() argument 1 must
Hi Carl,
making this change will raise a compiler warning about differ in
signdess.
I had a look at glib-poppler and the function initializes a new
MemStream which expects a char*, so I don't know how feasible a change
will be in poppler itself, can you ask them maybe?
thanks for all of your
patched packages:
https://edge.launchpad.net/~carl-personnelware/+archive
--
document_new_from_data() arg1 must be without null bytes
https://bugs.launchpad.net/bugs/312462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs
** Also affects: python-poppler (Ubuntu)
Importance: Undecided
Status: New
** Changed in: python-poppler (Ubuntu)
Status: New = In Progress
--
document_new_from_data() arg1 must be without null bytes
https://bugs.launchpad.net/bugs/312462
You received this bug notification
18 matches
Mail list logo