Re: [Inkscape-user] pdf files slow to appe
I removed the ellipses in the background.
I don't know where to file the bug report you talked about. Would you have a url..?
I reposted the pdf files still at http://www.thalasoft.com/brochure_en.pdf http://www..thalasoft.com/brochure_fr.pdf http://www.thalasoft.com/brochure_se.pdf
The problem now is with the fonts.
First the texts don't look so straight, and second some spacing appears within words in the pdf files (see the french http://www.thalasoft.com/brochure_fr.pdf at "Le web est notre langue commune") where there is none in the svg files.
Which fonts should I use..?
I do not need anything fancy at all, just working fonts to get an okay looking pdf file.
Cheers
----- Ursprungligt meddelande ---- Från: Adrian Johnson <ajohnson@...2497...> Till: Inkscape User Community inkscape-user@lists.sourceforge.net Skickat: söndag 20 april 2008 11:33:59 Ämne: Re: [Inkscape-user] pdf files slow to appe
Stephane Eybert wrote:
Dear all,
I installed inkscape 0.46 on Kubuntu 8.04 and can now save as pdf with pdf files having a very reasonable file size of barely under 100kb. Good!
But I still have an issue and wonder if there isn't something wrong with my pdf files.
I have put them at
http://www.thalasoft.com/brochure_en.pdf
http://www.thalasoft..com/brochure_se.pdf http://www.thalasoft.com/brochure_se.pdf
http://www.thalasoft.com/brochure_fr.pdf
for you to see.
They are very slow to load up in the kpdf reader, something like 10 seconds to appear.
The problem is the ellipses in the background are each drawn in the PDF with an soft mask due to the fill/stroke opacity set to less than 100%. This means each individual ellipse is drawn to an image buffer the size of the page, the mask function is drawn to another image buffer the size of the page. The ellipse image is then composited with the mask image back on to the page. With all the ellipses on the page this is not going to be fast.
The workaround is to set the master opacity to 100% and instead use the alpha in the stroke paint to control the transparency.
This is something that should be optimized in Inkscape. Currently Inkscape calls cairo_paint_with_alpha() when the opacity is less then 100%. This is required to handle the general case of drawing a combined fill and stroke to prevent a translucent stroke compositing with the fill. Calling cairo_paint_with_alpha() results in a soft mask being used in the PDF file. If only a fill or stroke is drawn, Inkscape should instead adjust the alpha value of the fill or stroke and avoid calling cairo_paint_with_alpha().
I suggest filing a bug requesting this optimization and attaching your SVG and PDF files.
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
__________________________________________________________ Låna pengar utan säkerhet. Jämför vilkor online hos Yahoo! http://shopping.yahoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=969150...
Stephane Eybert wrote:
I removed the ellipses in the background.
I don't know where to file the bug report you talked about. Would you have a url..?
https://bugs.launchpad.net/inkscape/
I reposted the pdf files still at http://www.thalasoft.com/brochure_en.pdf http://www.thalasoft.com/brochure_fr.pdf http://www.thalasoft.com/brochure_se.pdf
The problem now is with the fonts.
First the texts don't look so straight, and second some spacing appears within words in the pdf files (see the french http://www.thalasoft.com/brochure_fr.pdf at "Le web est notre langue commune") where there is none in the svg files.
The line you refer to in the PDF is not horizontal. The text matrix has a small amount of rotation applied to it in the PDF. I suggest filing a bug report for the extra spaces. As far as I can tell it is not a cairo bug.
participants (2)
-
Adrian Johnson
-
Stephane Eybert