From koffice-devel Mon Mar 05 11:22:25 2007 From: James Richard Tyrer Date: Mon, 05 Mar 2007 11:22:25 +0000 To: koffice-devel Subject: Re: Karbon printing problems Message-Id: <45EBFD71.6080103 () acm ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=117309376325877 James Richard Tyrer wrote: > James Richard Tyrer wrote: > > CORRECTION, I have tried so many things today that I have become a bit > confused. > >> The short story is that this will not print correctly: >> >> http://home.earthlink.net/~tyrerj/files/OG/ogp_open_window_logo.karbon > > Actually, the problem is that it can't be converted to a vector > PostScript file. If you print it with a bit map, it works. > > So, with Karbon, this problem occurs when saving as EPS. >> The long story is that this isn't a simple problem. It appears to me >> that the error occurs when preparing the PostScript file. > > Normally, you would expect that when you print a vector format to > PostScript that you would get a vector format PostScript file. Which is > what is needed here so that the image can be enlarged. > >> Since InkScape does almost exactly the same thing, it appears that the >> problem may be with PostScript. > > Note that InkScape gives you the choice of vector or bitmap PostScript. > This is a good feature. Also, it allows you to set the DPI for a > bitmap image. Also a good feature. > > IAC, you get exactly the same vector PostScript problem with InkScape. The specific problem with the EPS code: This is an excerpt from a save as EPS for the green 'G': S clip newpath /DeviceRGB setcolorspace << /ShadingType 2 /ColorSpace /DeviceRGB /Coords [ 262.22 454.655 295.304 473.769 ] /Extend[ true true ] /Function << /FunctionType 2 /C0 [ 0 0.678431 0.145098 ] /C1 [ 1 1 1 ] /N 1 /Domain [ 0 1 ] >> >> shfill R and the code needed to render this correctly: S clip newpath /DeviceRGB setcolorspace /linearGradient2281 << /FunctionType 2 /C0 [ 0 0.678431 0.145098 ] /C1 [ 1 1 1 ] /N 1 /Domain [ 0 1 ] >> def << /ShadingType 2 /ColorSpace /DeviceRGB /Coords [ 229.136 435.541 328.388 492.833 ] /Extend[ false false ] /Domain [-1 2] /Function << /FunctionType 3 /Functions [ linearGradient2281 linearGradient2281 linearGradient2281 ] /Domain [-1 2] /Bounds [ 0 1 ] /Encode [ 1 0 0 1 1 0 ] >> >> shfill R is it possible to fix this, or is the problem the Qt PostScript driver? -- JRT _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel