On 2007-October-31 , at 22:10 , Carl Worth wrote:
On Sat, 20 Oct 2007 11:53:07 +0200, jiho wrote:
On 2007-October-18 , at 00:09 , Carl Worth wrote:
I noticed that there is no cairo 1.5.2 at this address. Are you still planning to make a git snapshot?
Sorry about the delay. The 1.5.2 snapshot is here now:
http://cairographics.org/snapshots/cairo-1.5.2.tar.gz
And I'm definitely interested in hearing reports from inkscape users about cairo's PDF output with this snapshot. It should be lots better than cairo 1.4.10. But if you can find any regressions, I *definitely* want to hear about those.
Some notes on what's new in 1.5.2 compared to 1.4.10 can be seen here:
I (eventually) installed this new Cairo into my MacPorts install, compiled with the pdf backend enabled (--enable-pdf) and tested Inkscape's output on a simple test file of mine. The results are mixed:
- transparency is supported in Adobe Reader but not in Preview (OS X image viewer): the object is simply not displayed. Actually Preview is just a front end to Cocoa's PDFKit which is what all OS X applications dealing with PDFs use. So at this point, Cairo's output is clearly not usable yet. Inkscape's old pdf exporter with transparency looked OK
- blur is not supported (this is not surprising however). the object is not even rasterized, it is just displayed without the blur
- all gradients are well supported
- bitmaps embedded or linked are conserved
- markers and clones are handled perfectly
So the largest issue, by far, is the transparency. Many applications on OS X deal with PDFs and they all use PDFKit. Plus, Preview is a very slick and fast PDF viewer so I guess that most people go with it and don't even install the huge, over-crowed and slow adobe reader. It can't be considered as an alternative then. I am conscious that, since Adobe Reader renders Cairo's PDF correctly, the bug is probably on Apple's side. But I am afraid there is no way they would change this soon and the effort will have to be done on Cairo's side. I hope it will not be too hard to fix.
As a last note it seems like if Cairo's PDF ouput, though of reasonable size, made both Preview and Adobe Reader choke on the file, to the point of hanging several seconds, when zooming far in (>1000%). Other PDF files on my machine do not lead to this kind of behaviour.
Anyway, it really feels like there was progress but just the last few bits were missing. I hope they will be solved by Inkscape release time. It would be extraordinary to have kick-ass PDF support, both at import and export, for this release. Thanks for your effort.
PS: pdf-test-case in svg and pdf at this address http://jo.irisson.free.fr/dropbox/inkscape/
JiHO --- http://jo.irisson.free.fr/