[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2017-08-18 Thread Florian Aspart
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2014-11-15 Thread Martin Manns
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2014-11-15 Thread BenjaminBerg
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2013-09-15 Thread Peter Waller
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2013-09-15 Thread Peter Waller
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2013-09-12 Thread Peter Waller
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2013-09-12 Thread BenjaminBerg
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2012-10-20 Thread Paul Melis
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2012-07-19 Thread Pete
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2012-07-17 Thread Pete
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2012-07-16 Thread Pete
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2010-05-24 Thread BenjaminBerg
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-08-22 Thread Gian Mario Tagliaretti
** 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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-02-20 Thread Brian Murray
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-01-06 Thread Carl Karsten
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-01-06 Thread Gian Mario Tagliaretti
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-01-03 Thread Carl Karsten
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

[Bug 312462] Re: document_new_from_data() arg1 must be without null bytes

2009-01-02 Thread Carl Karsten
** 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