Re: [Java-gnome-developer] Cairo - embedding images in pdfs
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2010-02-05 23:34:25
|
On Fri, 2010-02-05 at 22:57 +0000, William Temperley wrote: > Thanks for the great libraries. They're absolutely the best way of > producing PDFs I've found. Well, there are glitches :) notably the fact that Cairo itself doesn't quite do everything we need it to. Adrian Johnson wants to create a PDF specific library that uses Cairo for its drawing but that knows about the rest of the PDF spec (as there are a number of PDF want-to-haves that just don't belong in Cairo, and won't get there, unfortunately). Needless to say that's a year+ away, but I'm hoping to support him as he goes. That said, Cairo 1.9 is a *significant* improvement over 1.8 in a lotof areas we touch using PdfSurface. > I've got what I expect is quite a simple problem, but I've spent hours > trawling apis and I can't figure it out. I'd just like to embed a > large image in a pdf. > So that's actually one of the problems; right now Cairo converts it to a bitmap or so, rather than just embedding the damn (ie) jpg. That's fixed in 1.10 by the addition of a setMimeType() API. But we don't have that yet. > The following crashes the JVM: But regardless, THAT shouldn't happen. Especially not her > pb = new Pixbuf("/tmp/logo.png"); > Could anyone give me some pointers please? So, if you could post on a server or pastebin somewhere the VM crash dump you get from the JVM, that might help. It might help people on the list if they could see some code, too. Hard to imagine what context you have that led to a crash there. AfC Sydney |