On Mon, Oct 6, 2008 at 12:27 PM, Guillaume Pothier <gpothier@...400...> wrote:
Hmm funny, part the problem seems to be with kpdf/okular then, as I can indeed see the circled numbers in acroread. However, the generated pdf is very slow to open, both with kpdf and acroread. In the former the whole page takes about 7 seconds to get (incorrectly) rendered. In the latter I can see the circled numbers appearing one after another, like two elements per second; it takes about 5s to render the whole page.
Most likely because cairo had to rasterize some parts of image that cannot be in PDF.
I imported the generated pdf back into inkscape, and it seems the structure just isn't right. There is an awful lot of nested groups that contain only one leaf element. Many of those are paths filled with a pattern, it seems those patterns are the circled numbers. It seems the main image is also a pattern-filled path with some clipping. There are also a lot of clip paths and masks being used. If the structure of the imported svg reflects the structure of the pdf, then I'm not surprised rendering is so slow and the pdf is so big. Any idea why is this rather simple svg transformed into such a complex pdf?
The structure of the output PDF is the responsibility of cairo. Inkscape feeds it the document without changing its structure in any way, just converting SVG objects to cairo calls. Everything else (such turning things to patterns) is cairo business; I don't know the reason but there should be some reason I guess. You may want to ask on the cairo list.